Re: Clean up OSS_Wave{In,Out}Init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux