https://bugs.winehq.org/show_bug.cgi?id=41970
Bug ID: 41970 Summary: Clickteam games' sound crackles Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: winealsa.drv Assignee: wine-bugs@winehq.org Reporter: fuhiwohe@nincsmail.com Distribution: ---
Since i changed my old SB Live! sound card to an Audigy Rx, Clickteam games (created with KnP, TGF, MMF series) are playing MIDI and sounds with stuttering and crackling under WIME. My OS is Debian 8 AMD64 and i use the latest WINE, but earlier versions are affected too. (I tried 1.6 from the repo, that does it too.)
If i run the game from console then sometimes i get the line
ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
at the beginning and
ALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred
sometimes, randomly. However the sound is (mostly) continously crackling and i only get this last one sometimes only.
The noise become more intense if i open a window inside the game (e.g.: password window)
No other type of games affected, even other games which uses MIDI are OK. Just the Clickteam created ones. Also native sound and MIDI playing are perfectly OK, so it's not ALSA or the soundcard itself. I've checked old bugreports about crackling sound, but all of them were pulse related and since pulseaudio is not installed on my machine and i also compiled WINE with the "--without-pulse" option, thus this must be something in the WINE ALSA driver.
Also, it does not change anything if i change the emulation type between Win98 or WinXp.
No crashlogs, since there are no crashes.
Please tell me if i should provide something.
https://bugs.winehq.org/show_bug.cgi?id=41970
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aeikum@codeweavers.com
--- Comment #1 from Austin English austinenglish@gmail.com --- Wine version?
Please attach a log with +tid,+seh,+mmdevapi,+winmm,+driver,+msacm,+midi,+dsound,+dsound3d,+xaudio2,+xapofx,+dmusic,+mci,+pulse,+oss,+alsa,+coreaudio,+timestamp
https://bugs.winehq.org/show_bug.cgi?id=41970
--- Comment #2 from fuhiwohe fuhiwohe@nincsmail.com --- Created attachment 56388 --> https://bugs.winehq.org/attachment.cgi?id=56388 Clickteam game debug output for ALSA driver debugging
https://bugs.winehq.org/show_bug.cgi?id=41970
--- Comment #3 from fuhiwohe fuhiwohe@nincsmail.com --- (In reply to Austin English from comment #1)
Wine version?
Latest (2.0-rc1), but i've tried it with older ones too and they were affected too.
Please attach a log with +tid,+seh,+mmdevapi,+winmm,+driver,+msacm,+midi,+dsound,+dsound3d,+xaudio2, +xapofx,+dmusic,+mci,+pulse,+oss,+alsa,+coreaudio,+timestamp
Attached.
https://bugs.winehq.org/show_bug.cgi?id=41970
--- Comment #4 from fuhiwohe fuhiwohe@nincsmail.com --- Interestingly, if i try to pipe the output and cat the pipe on another terminal, then the sound crackling disappears...
https://bugs.winehq.org/show_bug.cgi?id=41970
--- Comment #5 from fuhiwohe fuhiwohe@nincsmail.com --- Most strange. If i open a terminal and write:
cat /dev/urandom >/dev/null
when play the game, the MIDI's stuttering disappears. Can it be a dynamic CPU timing problem? Because cat pulls up the clock rate to the max.
https://bugs.winehq.org/show_bug.cgi?id=41970
--- Comment #6 from Andrew Eikum aeikum@codeweavers.com --- Interesting. I don't know a lot about how our MIDI support works, or MIDI in general. I've definitely never dealt with hardware MIDI support. You could look into debugging MIDI at the ALSA level; perhaps we're sending MIDI messages too late.
https://bugs.winehq.org/show_bug.cgi?id=41970
--- Comment #7 from fuhiwohe fuhiwohe@nincsmail.com --- (In reply to Andrew Eikum from comment #6)
Interesting. I don't know a lot about how our MIDI support works, or MIDI in general. I've definitely never dealt with hardware MIDI support. You could look into debugging MIDI at the ALSA level; perhaps we're sending MIDI messages too late.
And how can i debug that if you send MIDI messages too late? And why was it okay with my former sound card then?
https://bugs.winehq.org/show_bug.cgi?id=41970
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #8 from winetest@luukku.com --- I don't know if this has nothing to do with this bug. But I had an odd issue with linux mint and pulseaudio (not anymore). I had crackling voices. But I notice that I could get rid of them opening another audio program and silencing it. For example watching vlc videoclip and opening firefox with youtube content and silencing the output from there. If i had only one audio source open I had crackling.
https://bugs.winehq.org/show_bug.cgi?id=41970
--- Comment #9 from Bruno Jesus 00cpxxx@gmail.com --- Can you name one game that is affected and that has a demo (or is freeware) download link available?
https://bugs.winehq.org/show_bug.cgi?id=41970
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |ABANDONED Status|UNCONFIRMED |RESOLVED Version|unspecified |2.0-rc1 Severity|major |minor
--- Comment #10 from Ken Sharp imwellcushtymelike@gmail.com --- No response.
https://bugs.winehq.org/show_bug.cgi?id=41970
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED CC| |nerv@dawncrow.de
--- Comment #11 from André H. nerv@dawncrow.de --- closing abandoned