http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #33 from Jörg Höhle hoehle@users.sourceforge.net 2010-10-28 09:27:52 CDT --- Raymond wrote:
so it does not need open waveout device twice, the midi is play using sb16
Lemmix does not use MIDI to play music. It uses waveOut. Hence it opens the wave out device twice: once for background music, once for sound effects. Chip's Challenge is different and uses MIDI.
The wineoss.drv code indeed looks buggy w.r.t. DSP_CAP_MULTI. It's weird that dwFreeHwMixingAllBuffers is only ever incremented. By contrast, winealsa.drv doesn't even bother to set those.
your sound card support DSP_CAP_MULTI when it [...]
I never understood why you talk so much about sound cards. Wine and most apps don't access them directly. Instead they access things like ALSA's dmix or whatever the system put in place as default gate. Thus Wine apps using ALSA should allow to create multiple audio out channels, because the OS supports it (via dmix) even when the sound card may not. OSS is different, but I don't know much about either of them, so I'll shut up now.