Clean up OSS_Wave{In,Out}Init

Eric Pouech eric.pouech at wanadoo.fr
Fri Jan 10 12:10:30 CST 2003


Francois Gouget wrote:
> 
> This modifies OSS_Wave{In,Out}Init to report the exact capabilities of
> the OSS driver. The new code does not try to use SNDCTL_DSP_SETFMTS
> since some (old) cards may support 16bit or stereo audio at some sample
> rates but not other (higher) rates. It now also reports the 48kHz and
> 96kHz formats if they are supported.
given the susceptibility of some OSS implementations, I'd suggest 
reimplementing the test loop as:
for fmt
	for channels
		for rates
			if open succeeds
				1/ flag format as supported
				2/ close device
			endif
		endfor
	endfor
endfor
this would also put us out of danger if the device doesn't accept 
changing its mode on the fly
A+


-- 
Eric Pouech




More information about the wine-patches mailing list