http://bugs.winehq.org/show_bug.cgi?id=14717
--- Comment #162 from Raymond superquad.vortex2@gmail.com 2011-03-22 21:08:20 CDT --- (In reply to comment #90)
(In reply to comment #87)
it is meaningless to test those emulated sound card sb16 and ac97 in kvm or virtualbox.
I would agree if the emulated sound card used the driver specifically written for it (i.e., something analogous to the VMware video driver). However, the emulated card pretends to be a real thing, identical to something manufactured in real-world silicon, and uses the drivers meant to be used with the real-silicon cards (i.e., the drivers that come with Windows itself). So these drivers would send identical output to the emulated and real-world cards and thus are suitable for reverse-engineering the resampler, provided that kvm itself does no resampling (that's why QEMU_AUDIO_DAC_FIXED_SETTINGS=0).
if you look at winealsa.drv/waveinit.c
wwo.outcaps.wMid = MM_CREATIVE; wwo.outcaps.wPid = MM_CREATIVE_SBP16_WAVEOUT; wwo.outcaps.vDriverVersion = 0x0100;
wwi.incaps.wMid = MM_CREATIVE; wwi.incaps.wPid = MM_CREATIVE_SBP16_WAVEOUT; wwi.incaps.vDriverVersion = 0x0100;
it is emulating SB 16 waveout and wavein for all alsa sound cards