winmm wave test

Robert Reif reif at earthlink.net
Mon Apr 26 06:40:19 CDT 2004


Francois Gouget wrote:

>On Sun, 25 Apr 2004, Robert Reif wrote:
>[...]
>  
>
>>How about something like this:
>>
>>Adds test for illegal bits per sample.
>>Fixes format printing.
>>    
>>
>
>Looks ok though if we keep the 2MHz etst then we should investigate
>what's goign on on Windows in more details.
>
>
>  
>
>>Since we are opening the device in WAVE_FORMAT_DIRECT mode, the wave
>>mapper is not involved so it should fail unless the hardware really
>>supports 2MHz
>>(which is highly unlikely).
>>    
>>
>
>True. But I believe Alsa will happily resample (or claim to resample) a
>2MHz signal which makes it impossible for us to report an error. Unless
>we check for any frequency >96KHz in our driver but this test could be
>wrong on high-end sound cards: I believe some support 192KHz sampling
>rates.
>
>IOW I'm not sure it's worth trying to be 100% compatible with Windows
>there. Especially since there's some doubt about what Windows actually
>does.
>
>
>  
>
I know for a fact that DirectSound used to have a 100kHz limit which was
recently raised to 200kHz but I don't know if that limit was imposed in
Direct Sound or was inherited from the driver itself.   We could also check
the wave api against the Direct Sound limits when ALSA is used with
plugins.




More information about the wine-devel mailing list