Francois Gouget wrote:
given the susceptibility of some OSS implementations, I'd suggest reimplementing the test loop as: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.
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