http://bugs.winehq.org/show_bug.cgi?id=22880
Summary: Lemmix sound effects are missing Product: Wine Version: 1.1.42 Platform: x86 URL: http://ericenzwaan.nl/eric/lemmings/LemmixPlayer_1_3.z ip OS/Version: Linux Status: UNCONFIRMED Severity: trivial Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: turbolad995@hotmail.co.uk
When playing Lemmix (a clone of the Lemmings game), the sound effects are missing. Fortunately the background level music plays - only the sound effects don't work.
http://bugs.winehq.org/show_bug.cgi?id=22880
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
--- Comment #1 from Vitaliy Margolen vitaliy@kievinfo.com 2010-05-26 08:24:28 --- Please retest with latest Wine version wine-1.2-rc1
http://bugs.winehq.org/show_bug.cgi?id=22880
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #2 from Vincent Povirk madewokherd@gmail.com 2010-05-26 08:52:23 --- Still present in 1.2-rc1.
http://bugs.winehq.org/show_bug.cgi?id=22880
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |winmm&mci
--- Comment #3 from Vincent Povirk madewokherd@gmail.com 2010-05-26 09:20:02 --- I blame the following line in my winmm log:
0020:trace:winmm:WAVE_Open dwRet = MMSYSERR_ALLOCATED
Also, if the music is turned off (press F3 at the menu until it says FX), sound effects work.
http://bugs.winehq.org/show_bug.cgi?id=22880
Jörg Höhle hoehle@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hoehle@users.sourceforge.ne | |t
--- Comment #4 from Jörg Höhle hoehle@users.sourceforge.net 2010-05-28 16:36:11 --- Does MMSYSERR_ALLOCATED make this a duplicate of bug #22261? I.e. Wine, like win95 AFAIK, only allows one winmm device open at any one time, while w2k and later use the WDM to perform mixing (dsound does too) -- yet the website mentions win98, are sound effects present on a win98 box?
http://bugs.winehq.org/show_bug.cgi?id=22880
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wylda@volny.cz
--- Comment #5 from Wylda wylda@volny.cz 2010-05-31 06:03:56 --- (In reply to comment #4)
Does MMSYSERR_ALLOCATED make this a duplicate of bug #22261? I.e. Wine, like win95 AFAIK, only allows one winmm device open at any one time, while w2k and later use the WDM to perform mixing (dsound does too) -- yet the website mentions win98, are sound effects present on a win98 box?
Hi Jörg, yes in case of Win98 (vmware machine), there is music and sound effects together.
So this is valid bug report.
http://bugs.winehq.org/show_bug.cgi?id=22880
Raymond superquad.vortex2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |superquad.vortex2@gmail.com
--- Comment #6 from Raymond superquad.vortex2@gmail.com 2010-06-01 09:54:24 --- (In reply to comment #4)
Does MMSYSERR_ALLOCATED make this a duplicate of bug #22261? I.e. Wine, like win95 AFAIK, only allows one winmm device open at any one time, while w2k and later use the WDM to perform mixing (dsound does too) -- yet the website mentions win98, are sound effects present on a win98 box?
all those hardware mixing 16 voices sound cards use ac97 codec , so winmm is unlikely allow more than one device in win95 , but the patch in bug#22261 is also wrong if your card does not support 16 voices
any log with WINEDEBUG=+alsa,+dsound
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #7 from Vincent Povirk madewokherd@gmail.com 2010-06-05 10:45:14 --- Created an attachment (id=28584) --> (http://bugs.winehq.org/attachment.cgi?id=28584) log with WINEDEBUG=+alsa,+dsound on wine-1.2-rc2-111-g9aa9a12
This is a surprisingly short log.
Also, the patch on bug 22261 is malformed.
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #8 from Wylda wylda@volny.cz 2010-06-06 04:20:51 ---
website mentions win98, are sound effects present on a win98 box?
all those hardware mixing 16 voices sound cards use ac97 codec , so winmm is unlikely allow more than one device in win95 , but the patch in bug#22261 is also wrong if your card does not support 16 voices
I don't know if it can help somehow, but i got those sound+effects under Win98 with SoundBlaster PCI128 driver.
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #9 from Raymond superquad.vortex2@gmail.com 2010-06-06 17:04:11 --- (In reply to comment #8)
I don't know if it can help somehow, but i got those sound+effects under Win98 with SoundBlaster PCI128 driver.
http://www.alsa-project.org/main/index.php/Matrix:Vendor-Creative_Labs
seem that those .ecw Ensoniq Concert Wavetable are not supported , only emu10k1 support those soundfont .sf2 [wavetable]
http://en.wikipedia.org/wiki/Ensoniq_AudioPCI
you have to use softsynth (e.g. "timidity -iA" )
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #10 from Raymond superquad.vortex2@gmail.com 2010-06-06 17:08:50 --- (In reply to comment #3)
I blame the following line in my winmm log:
0020:trace:winmm:WAVE_Open dwRet = MMSYSERR_ALLOCATED
Also, if the music is turned off (press F3 at the menu until it says FX), sound effects work.
cannot find the above error in you log
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #11 from Vincent Povirk madewokherd@gmail.com 2010-06-06 17:43:05 --- That's because I gave you the channels you asked for, alsa and dsound. That line would show up in a winmm log.
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #12 from Raymond superquad.vortex2@gmail.com 2010-06-06 20:36:44 --- (In reply to comment #11)
That's because I gave you the channels you asked for, alsa and dsound. That line would show up in a winmm log.
0020:trace:winmm:WAVE_Open dwRet = MMSYSERR_ALLOCATED
this seem that the program expect the driver support multiple waveoutopen concurrently
the oss driver ens1371 seem support /dev/dsp and /dev/adsp ( not sure the alternate PCM output to the front channels or rear channels )
Take a look at the system diagram of ymf724 datasheet , there are multiple WaveOut device connected to Ds1 slot manager ( up to 64 sound)
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #13 from Raymond superquad.vortex2@gmail.com 2010-06-06 20:48:21 --- There is a test test_multiple_waveopens() which try to perform multiple waveopens but the current implementation does not support multiple wave open even when the sound card support (alsa sound driver which has multiple subdevices ) because wine only expect there is only one playback device for each sound card
http://source.winehq.org/git/wine.git/?a=commitdiff;h=6a7127bfc201ff7a218795...
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #14 from Jörg Höhle hoehle@users.sourceforge.net 2010-06-12 15:48:03 --- Wylda, [in reply to comment #5]
So this is valid bug report.
I do not dispute this. I simply believe that we need a single bug report about the audio driver's inability in Wine to handle multiple concurrent opens -- or perhaps, one such bug per audio driver: + bug #22261 mentions the deprecated esound driver supports multiple opens; + I believe MacOS' CoreAudio driver does: commit ef87a050c6966d43fe1b457e80faa8b0bb31755d since wine-1.1.32 - neither wineOSS.drv - nor wineALSA do. That's why I suggest to mark the present issue as duplicate (despite the Lemmix download link).
I believe the actual sound HW (ens1371, AC'97 etc.) does not matter to Wine. These days, most Linux systems allow multiple opens and perform mixing (ALSA's dmix, OSS4 ...) when needed.
Note that there may be various reasons why music and sound do not mix, some external to Wine. On a Ubuntu system with PulseAudio, I've had situations where Timitidy grabbed the ALSA audio output (first come, first served), therefore no other app could produce sound any more, not /usr/bin/speaker-test, nor Wine's sound, nor any PulseAudio app.
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #15 from Raymond superquad.vortex2@gmail.com 2010-06-12 18:47:48 --- (In reply to comment #14)
I believe the actual sound HW (ens1371, AC'97 etc.) does not matter to Wine. These days, most Linux systems allow multiple opens and perform mixing (ALSA's dmix, OSS4 ...) when needed.
are you using dmix or pulseaudio ?
In OSS/Free ,
/dev/dsp is alsa 's hw:0,0 /dev/adsp is alsa 's hw:0,1
aplay -l **** List of PLAYBACK Hardware Devices **** card 0: AudioPCI [Ensoniq AudioPCI], device 0: ES1371/1 [ES1371 DAC2/ADC] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: AudioPCI [Ensoniq AudioPCI], device 1: ES1371/2 [ES1371 DAC1] Subdevices: 1/1 Subdevice #0: subdevice #0
Note that there may be various reasons why music and sound do not mix, some external to Wine. On a Ubuntu system with PulseAudio, I've had situations where Timitidy grabbed the ALSA audio output (first come, first served), therefore no other app could produce sound any more, not /usr/bin/speaker-test, nor Wine's sound, nor any PulseAudio app.
It really depend on your sound card support hardware mixing or not
did you configured timitity to use dmix ?
dmix is hardcoded to use subdevice 0
even your hardware mixing sound card which has multiple subdevice , dmix can only use subdevice 0
if you did not specify subdevice (e.g. hw:0,0) , alsa-lib use default subdevice value -1 which mean any available subdevice ( hw:0,0,-1)
ens1371 has 2 playback devices , hw:0,0 and hw:0,1
http://bugs.winehq.org/show_bug.cgi?id=22880
David turbolad995@hotmail.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|trivial |major
--- Comment #16 from David turbolad995@hotmail.co.uk 2010-06-13 15:55:17 --- *UPDATE*
Discovered by chance that if you have another sound playing and open any of the 2 Lemmix games, this will cause problems!
First thing I noticed upon opening Lemmix was the music icon was missing and replaced with the letters "FX" (this should never happen). The background music still worked, but still no sound effects. Then I got logged out of Ubuntu without warning!!
I was playing internet radio and lowered the volume of Lemmix via the Sound Preferences in Ubuntu.
I thought I'd let you know as it could help with the sound issues in Wine. I don't understand the technical information posted above, but hope this comment of mine helps. :)
http://bugs.winehq.org/show_bug.cgi?id=22880
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|major |trivial
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #17 from Raymond superquad.vortex2@gmail.com 2010-06-17 20:04:41 --- (In reply to comment #16)
*UPDATE*
Discovered by chance that if you have another sound playing and open any of the 2 Lemmix games, this will cause problems!
First thing I noticed upon opening Lemmix was the music icon was missing and replaced with the letters "FX" (this should never happen). The background music still worked, but still no sound effects. Then I got logged out of Ubuntu without warning!!
I was playing internet radio and lowered the volume of Lemmix via the Sound Preferences in Ubuntu.
I thought I'd let you know as it could help with the sound issues in Wine. I don't understand the technical information posted above, but hope this comment of mine helps. :)
According to the author of freebsd driver
Ensoniq based chips does have 2 DAC, ... The original intent of DAC1 actually to implement some sort of wavetable synth
http://lists.freebsd.org/pipermail/freebsd-multimedia/2005-October/002831.ht...
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #18 from David turbolad995@hotmail.co.uk 2010-07-01 07:37:10 --- I have tried all the Lemmix versions in Windows XP and the sound effects work.
In Wine, the sound effects do not work, but the background music plays fine.
As I dual-boot with Windows XP and Ubuntu, I could provide helpful bug reports by testing programs in Windows XP and of course testing them in Wine when I'm using Ubuntu.
I'm sorry I can't fix the bugs as I can't do programming, but providing detailed bug reports is hopefully a good contribution for improving Wine for everyone?
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #19 from Raymond superquad.vortex2@gmail.com 2010-07-02 10:26:09 --- (In reply to comment #11)
That's because I gave you the channels you asked for, alsa and dsound. That line would show up in a winmm log.
please post the full log and don't trim the output
WINEDEBUG=+dsound,+midi,+alsa
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #20 from David turbolad995@hotmail.co.uk 2010-07-16 06:47:42 --- Still no sound effects in Lemmix using Wine version 1.2-rc7.
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #21 from Raymond superquad.vortex2@gmail.com 2010-07-17 20:26:19 --- (In reply to comment #3)
I blame the following line in my winmm log:
0020:trace:winmm:WAVE_Open dwRet = MMSYSERR_ALLOCATED
Also, if the music is turned off (press F3 at the menu until it says FX), sound effects work.
can you post the whole log ?
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #22 from David turbolad995@hotmail.co.uk 2010-08-27 17:36:46 CDT --- This appears to be the exactly the same bug in another game. Download Chips Challenge from: http://www.freewebs.com/chipshome/chips.html
Run it in Wine and the background music won't play (have to enable it in the options menu in the game), but the sound effects work (lol - the opposite problem described for the lemmix sound bug).
Hope that info helps fix sound issues in Wine.
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #23 from Raymond superquad.vortex2@gmail.com 2010-08-30 02:12:27 CDT --- may be the game use FM-synth ?
WINEDEBUG=+midi
you will need to use soft-synth ( timidity configured to use dmix or pulse ) if your sound card does not has OPL2/OPL3 synth
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #24 from David turbolad995@hotmail.co.uk 2010-10-09 13:32:20 CDT --- Bug still present in Wine 1.3.4
With regards to sound, the sound quality for Nestopia (awarded "Platinum" in the AppDB) seems better under this newer version of Wine.
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #25 from Jörg Höhle hoehle@users.sourceforge.net 2010-10-26 07:31:31 CDT --- This issue about Lemmix is a strict duplicate of bug #22261. Likely, every bug about WAVE_Open dwRet = MMSYSERR_ALLOCATED is.
Lemmix first calls a waveOutOpen with 6 buffers for the background music, then uses PlaySound(SND_MEMORY|SND_ASYNC) to play sound effects. This second use fails for Wine's ALSA and OSS drivers because they only support a single output (dwUser is unused). It works with the Core Audio driver for MacOS (since Ken Thomases patches in October 2009). Perhaps it would work with the non-official PulseAudio driver.
David, Chip's Challenge is an entirely different issue. It plays music using MIDI. Please file a new bug report about it because switching music on makes my Ubuntu Intrepid system become very unresponsive after playing a few MIDI notes, and C'C hangs for a couple of seconds every so often (no refresh of the virtual window) - if you can reproduce that. Killing PulseAudio helped produce sound effects reliably, but playing music still causes too much trouble (using Timidity, FluidSynth not tested). Please don't file a bug report about MIDI without reading http://wiki.winehq.org/MIDI first (e.g. does MIDI work at all on your machine?)
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #26 from Raymond superquad.vortex2@gmail.com 2010-10-26 09:55:17 CDT --- (In reply to comment #25)
This issue about Lemmix is a strict duplicate of bug #22261. Likely, every bug about WAVE_Open dwRet = MMSYSERR_ALLOCATED is.
Lemmix first calls a waveOutOpen with 6 buffers for the background music, then uses PlaySound(SND_MEMORY|SND_ASYNC) to play sound effects. This second use fails for Wine's ALSA and OSS drivers because they only support a single output (dwUser is unused). It works with the Core Audio driver for MacOS (since Ken Thomases patches in October 2009). Perhaps it would work with the non-official PulseAudio driver.
the patch in bug#22226 is also wrong when your sound card does not support hardware mixing
it won't work with winepulse since PA only support per application volume instead of per voice volume control
unfortuately "winmm_test wave" did not really provide an audible test for two waveopen concurrently
if you have hardware mixing sound card , it is possible to hack oss emulation to support DSP_CAP_MULTI
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #27 from Jörg Höhle hoehle@users.sourceforge.net 2010-10-27 09:33:56 CDT ---
it is possible to hack oss
The Wine project does not need a hack, it needs somebody with some ALSA and/or OSS knowledge and preferably access to machines with different sound cards to sit down and write robust code to use several units, using dwUser for keying. It was done for MacOS' Core Audio last year, it can be done for ALSA and OSS. I don't know whether Maarten Lankhorst's ongoing openal work would make such effort futile.
David or some admin, please mark as duplicate (and possibly add the keyword "source", as there's a URL for Lemmix' Delphi source code on the AppDB page). I consider this issue a duplicate because it's about MMSYSERR_ALLOCATED being returned from a second waveOutOpen. The difference with the other application is that this failure does not cause the app to crash or exit.
http://bugs.winehq.org/show_bug.cgi?id=22880
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE
--- Comment #28 from Austin English austinenglish@gmail.com 2010-10-27 12:26:55 CDT --- Dupe.
*** This bug has been marked as a duplicate of bug 22261 ***
http://bugs.winehq.org/show_bug.cgi?id=22880
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #29 from Austin English austinenglish@gmail.com 2010-10-27 12:27:07 CDT --- Closing.
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #30 from Raymond superquad.vortex2@gmail.com 2010-10-27 18:49:56 CDT --- (In reply to comment #27)
it is possible to hack oss
The Wine project does not need a hack, it needs somebody with some ALSA and/or OSS knowledge and preferably access to machines with different sound cards to sit down and write robust code to use several units, using dwUser for keying. It was done for MacOS' Core Audio last year, it can be done for ALSA and OSS. I don't know whether Maarten Lankhorst's ongoing openal work would make such effort futile.
David or some admin, please mark as duplicate (and possibly add the keyword "source", as there's a URL for Lemmix' Delphi source code on the AppDB page). I consider this issue a duplicate because it's about MMSYSERR_ALLOCATED being returned from a second waveOutOpen. The difference with the other application is that this failure does not cause the app to crash or exit.
just need to define DSP_CAP_MULTI since the code is already in
http://git.alsa-project.org/?p=alsa-kernel.git;a=blob;f=sound/core/oss/pcm_o...
your sound card support DSP_CAP_MULTI when it has more than one playback subdevice
1929 #ifdef DSP_CAP_MULTI 1930 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) 1931 if (substream->pstr->substream_count > 1) 1932 res |= DSP_CAP_MULTI; 1933 #endif
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #31 from Raymond superquad.vortex2@gmail.com 2010-10-27 18:57:43 CDT --- it is also used in wineoss.drv/audio.c to provide hardware secondary buffers
http://source.winehq.org/git/wine.git/?a=blob;f=dlls/wineoss.drv/audio.c
845 #ifdef DSP_CAP_MULTI /* not every oss has this */ 846 /* check for hardware secondary buffer support (multi open) */ 847 if ((arg & DSP_CAP_MULTI) && 848 (ossdev->out_caps.dwSupport & WAVECAPS_DIRECTSOUND)) { 849 TRACE("hardware secondary buffer support available\n"); 850 851 ossdev->ds_caps.dwMaxHwMixingAllBuffers = 16; 852 ossdev->ds_caps.dwMaxHwMixingStaticBuffers = 0; 853 ossdev->ds_caps.dwMaxHwMixingStreamingBuffers = 16; 854 855 ossdev->ds_caps.dwFreeHwMixingAllBuffers = 16; 856 ossdev->ds_caps.dwFreeHwMixingStaticBuffers = 0; 857 ossdev->ds_caps.dwFreeHwMixingStreamingBuffers = 16; 858 }
859 #endif
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #32 from Raymond superquad.vortex2@gmail.com 2010-10-27 20:40:43 CDT --- (In reply to comment #4)
Does MMSYSERR_ALLOCATED make this a duplicate of bug #22261? I.e. Wine, like win95 AFAIK, only allows one winmm device open at any one time, while w2k and later use the WDM to perform mixing (dsound does too) -- yet the website mentions win98, are sound effects present on a win98 box?
if you look at ens1371 specification , the legacy subsystem support soundblaster 16 , opl-fm emulation
so it does not need open waveout device twice, the midi is play using sb16 or opl-fm emulation
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.
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #34 from Raymond superquad.vortex2@gmail.com 2010-11-03 08:32:28 CDT --- (In reply to comment #25)
This issue about Lemmix is a strict duplicate of bug #22261. Likely, every bug about WAVE_Open dwRet = MMSYSERR_ALLOCATED is.
The patch in 22261 actually freeze this game
This game can get both music and effect only using wineesd.drv but the no sound after played a few level as the PA server was aborted
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #35 from Jörg Höhle hoehle@users.sourceforge.net 2010-11-12 08:17:41 CST --- A freeze is no surprise. That patch is a hack to get past a particular error and see whether Wine chokes on something else later.
What the patch does is similar to having OpenFile yield the one same file handle for all files! Doing so will clearly crash very soon. It is by no means a functional patch.
BTW, bug #19523 can also be considered a duplicate of that matter.
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #36 from Jörg Höhle hoehle@users.sourceforge.net 2010-11-17 12:34:20 CST --- David, It may not be necessary to file a bug report about Chip's Challenge any more.
Given today's commit 129778803ec4a72e05665acee761da0d0c461efa (+ the part of the preceding commit that moves setting MCI_MODE_STOP prior to sending out the notification in the MCI player) that app now works well enough with MIDI. There are no more hangs in the menus when BGM is enabled. MIDI music now plays when a level is started, as well as when resuming from a pause with F3 or when the window lost focus.
However MIDI does not always play. If that happens, move to another level and it usually works. You may still compare it with native: please file a *new* bug if there, MIDI always works - every time.
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #37 from David turbolad995@hotmail.co.uk 2010-11-17 17:33:49 CST --- (In reply to comment #36)
David, It may not be necessary to file a bug report about Chip's Challenge any more.
Given today's commit 129778803ec4a72e05665acee761da0d0c461efa (+ the part of the preceding commit that moves setting MCI_MODE_STOP prior to sending out the notification in the MCI player) that app now works well enough with MIDI. There are no more hangs in the menus when BGM is enabled. MIDI music now plays when a level is started, as well as when resuming from a pause with F3 or when the window lost focus.
However MIDI does not always play. If that happens, move to another level and it usually works. You may still compare it with native: please file a *new* bug if there, MIDI always works - every time.
Thank you for responding.
I'm not an expert at the Wine and Linux stuff, so please accept that I'm submitting bug reports as a "newbie" who uses the software. I have no technical knowledge such as "today's commit 129778803ec4a72e05665acee761da0d0c461efa" - whatever that means??
If I discover a problem with something running under Wine, I will file a bug report, but these bug reports are too technical for newbies like me. Cheers.
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #38 from Raymond superquad.vortex2@gmail.com 2010-11-17 18:38:10 CST --- cannot find any .mid file in LemmixPlayer 's source code
There are amiga .mod file which can be played by timidity and this sound like those background music
It seem that dephi 's TMusic converted the background music to pcm
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #39 from Raymond superquad.vortex2@gmail.com 2010-12-07 07:09:55 CST --- (In reply to comment #27)
David or some admin, please mark as duplicate (and possibly add the keyword "source", as there's a URL for Lemmix' Delphi source code on the AppDB page). I consider this issue a duplicate because it's about MMSYSERR_ALLOCATED being returned from a second waveOutOpen. The difference with the other application is that this failure does not cause the app to crash or exit.
Lemmix also have both sound effect and musicj using winepulse, but the quality is not as good as wineesd
so this is definitely a bug in winealsa
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #40 from Raymond superquad.vortex2@gmail.com 2010-12-12 05:51:11 CST --- (In reply to comment #25)
This issue about Lemmix is a strict duplicate of bug #22261. Likely, every bug about WAVE_Open dwRet = MMSYSERR_ALLOCATED is.
Lemmix first calls a waveOutOpen with 6 buffers for the background music, then uses PlaySound(SND_MEMORY|SND_ASYNC) to play sound effects. This second use fails for Wine's ALSA and OSS drivers because they only support a single output (dwUser is unused). It works with the Core Audio driver for MacOS (since Ken Thomases patches in October 2009). Perhaps it would work with the non-official PulseAudio driver.
Yes, Lemmix work with non-official winepulse driver too
I have modified winealsa.drv to enable multiple waveoutopen for those alsa drivers which support hardmixing and Lemmix seem also work with plug:dmix too
**** List of PLAYBACK Hardware Devices **** card 0: au8830 [Aureal Vortex au8830], device 0: AU88x0 ADB [adb] Subdevices: 31/32
static DWORD wodOpen(WORD wDevID, WINE_WAVE_VOICE **pInstance,LPWAVEOPENDESC lpDesc, DWORD dwFlags) { WINE_WAVEDEV* wwo; ...
wwo = &WOutDev[wDevID]; v = 0; while (( wwo->voice[v].pcm != NULL ) && ( v < MAX_ALSA_VOICE )) v++;
if ( v >= MAX_ALSA_VOICE ) { WARN("more than %d voices for device %s\n", MAX_ALSA_VOICE , wwo->pcmname); return MMSYSERR_ALLOCATED; }; voice=&wwo->voice[v];
...
flags = SND_PCM_NONBLOCK;
if ( (err = snd_pcm_open(&pcm, wwo->pcmname, SND_PCM_STREAM_PLAYBACK, flags)) < 0) { ERR("Error open: %s\n", snd_strerror(err)); return MMSYSERR_ALLOCATED; }
...
*pInstance = voice; return wodNotifyClient(voice, WOM_OPEN, 0L, 0L);
errexit:
...
}
DWORD WINAPI ALSA_wodMessage(UINT wDevID, UINT wMsg, DWORD_PTR dwUser, DWORD_PTR dwParam1, DWORD_PTR dwParam2) { WINE_WAVE_VOICE *voice = (WINE_WAVE_VOICE *)dwUser;
case WODM_OPEN: return wodOpen (wDevID, (WINE_WAVE_VOICE **)dwUser,(LPWAVEOPENDESC)dwParam1, dwParam2);
...
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #41 from Raymond superquad.vortex2@gmail.com 2010-12-21 21:49:21 CST --- Created an attachment (id=32584) --> (http://bugs.winehq.org/attachment.cgi?id=32584) waveout.c - support multiple waveoutopen for hardware mixing device or dmix
Tested with emu10k1 and au8830
Please read the remark inside the program
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #42 from Wylda wylda@volny.cz 2010-12-22 00:41:45 CST ---
waveout.c - support multiple waveoutopen for hardware mixing device or dmix
If this contain some changes (i'm not a programmer), is definitely better to attach only the changes in standardized form like:
diff -u waveout.c.orig waveout.c.new > waveout.patch
and attach this patch here and send it to wine-patches (patches are not picked up from bugzilla).
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #43 from Raymond superquad.vortex2@gmail.com 2010-12-26 23:46:20 CST --- forget to mention that you need to use "front" device for playback if you are using snd-emu10k1 since it can play stereo to "front" or "rear" jack and "hw:0,0" cannot be used as playback device for snd-emu10k1 anymore
if your linux distribution override the definition of "default" device
add the following enty in your .asoundrc
pcm.wine { type asym playback.pcm "front:0" capture.pcm "plughw:0,0" }
http://wiki.winehq.org/UsefulRegistryKeys
AutoScanCards="N" DeviceCount="1" DevicePCM1="wine" DeviceCTL1="hw:0" UseDirectHW="N"
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #44 from Raymond superquad.vortex2@gmail.com 2011-03-04 18:20:28 CST --- Created an attachment (id=33532) --> (http://bugs.winehq.org/attachment.cgi?id=33532) wineoss.drv/audio.c - support multiple waveoutopen
This is similar to 32584 winealsa.drv/waveout.c , use WINE_WAVE_VOICE instead of WINE_WAVEOUT to allow multiple waveoutopen
It does not need DSP_CAP_MULTI to be defined,
as long as your sound cards allow you to run more than one instances of "mplayer -ao oss any.wav" in ALSA OSS kernel emulation
unfortunately SB Live! emu10k1 does not work in oss emulation anymore because of routing, only a few sound sound support this feature (e.g. au88x0 ,
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #45 from David turbolad995@hotmail.co.uk 2011-07-27 07:04:27 CDT --- Good news! The sound effects now work in Lemmix using Wine version 1.3.25. :)
Looks like this bug has been fixed.
http://bugs.winehq.org/show_bug.cgi?id=22880
--- Comment #46 from Raymond superquad.vortex2@gmail.com 2011-09-08 09:25:26 CDT --- (In reply to comment #45)
Good news! The sound effects now work in Lemmix using Wine version 1.3.25. :)
Looks like this bug has been fixed.
No, sound are broken when playing 0.45 seconds mono U8 10101 Hz "YIPPEE.WAV" for 9 times when 9 lemmings arrive in less than 2 seconds with the background Music
http://bugs.winehq.org/show_bug.cgi?id=28060#c7
each time one of the lemmings go into the home - needs a new bug report. This problem is really noticeable when the release rate is 99 and the lemmings are closest to each other.