You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the driver teacahsd.sys for USB UAC2 devices, just setting -format s24le -channels 2 doesn't work:
ao_dsound: DirectSound initialized
ao_dsound: Samplerate:48000Hz Channels:2 Format:s24le
ao_dsound: Buffersize:288000 bytes (1000 msec)
ao_dsound: primary buffer created
ao_dsound: DirectSound uninitialized
ao_dsound: cannot create secondary (stream)buffer (DSERR_INVALIDCALL)
Failed to initialize audio driver 'dsound:device=1'
Could not open/initialize audio device -> no sound.
But -format s24le -channels 2 -af-add format=s24le,channels=3 actually works:
ao_dsound: DirectSound initialized
ao_dsound: Samplerate:48000Hz Channels:3 Format:s24le
ao_dsound: Buffersize:432000 bytes (1000 msec)
ao_dsound: primary buffer created
ao_dsound: secondary (stream)buffer created
AO: [dsound] 48000Hz 3ch s24le (3 bytes per sample)
I can hear sin()*(2^-18) as sine wave, so it must be working through to the final output.
The difference is the usage of WAVE_FORMAT_EXTENSIBLE. The driver refuses to accept anything larger than s16 wrapped in plain WAVE_FORMAT_PCM. Possibly because they're declared deprecated at some point in the history (IIRC).
Note that the behavior is device driver dependent; on Realtek ALC it seems to work in either way. Looking at the opposite side of the problem, are there any usable devices left in the wild which are capable of s24 stereo AND yet don't accept WAVE_FORMAT_EXTENSIBLE at all?
The text was updated successfully, but these errors were encountered:
On the driver
teacahsd.sys
for USB UAC2 devices, just setting-format s24le -channels 2
doesn't work:But
-format s24le -channels 2 -af-add format=s24le,channels=3
actually works:I can hear
sin()*(2^-18)
as sine wave, so it must be working through to the final output.The difference is the usage of
WAVE_FORMAT_EXTENSIBLE
. The driver refuses to accept anything larger than s16 wrapped in plainWAVE_FORMAT_PCM
. Possibly because they're declared deprecated at some point in the history (IIRC).Note that the behavior is device driver dependent; on Realtek ALC it seems to work in either way. Looking at the opposite side of the problem, are there any usable devices left in the wild which are capable of s24 stereo AND yet don't accept
WAVE_FORMAT_EXTENSIBLE
at all?The text was updated successfully, but these errors were encountered: