http://bugs.winehq.org/show_bug.cgi?id=28880
Bug #: 28880 Summary: No sound in some Directx games Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: rave002@o2.pl Classification: Unclassified
I'm running openSuSE with recent (1.3.31) wine. Unfortunately even if Sound Test in winecfg is working, sound in DirectX/sdl for windows based games does not (GeneRally, RPG Maker 2003/2000-based games and others). I'm running PulseAudio if it matters. I'll attach generally log.
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #1 from rave002@o2.pl 2011-10-24 05:06:00 CDT --- Created attachment 37105 --> http://bugs.winehq.org/attachment.cgi?id=37105 Log from running generally
http://bugs.winehq.org/show_bug.cgi?id=28880
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |1.3.31
http://bugs.winehq.org/show_bug.cgi?id=28880
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aeikum@codeweavers.com
--- Comment #2 from Austin English austinenglish@gmail.com 2011-10-26 12:29:11 CDT --- Please attach a log as specified at http://wiki.winehq.org/Sound.
http://bugs.winehq.org/show_bug.cgi?id=28880
Andrew Eikum aeikum@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://gene-rally.com/
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #3 from Andrew Eikum aeikum@codeweavers.com 2011-10-26 14:00:01 CDT --- Yes, a log would be helpful. GeneRally is working fine for me. Do you have a list of some other games that don't work for you?
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #4 from rave002@o2.pl 2011-10-26 15:18:18 CDT --- Created attachment 37136 --> http://bugs.winehq.org/attachment.cgi?id=37136 +tid,+mmdevapi,+winmm,+midi,+dsound,+dmusic,+oss,+alsa,+coreaudio log
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #5 from rave002@o2.pl 2011-10-26 15:19:39 CDT --- (In reply to comment #3)
Yes, a log would be helpful. GeneRally is working fine for me. Do you have a list of some other games that don't work for you?
Yes, mainly those which uses DirctX for sound. Sound Test in winecfg works fine for me. Also I use winealsa.drv
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #6 from Andrew Eikum aeikum@codeweavers.com 2011-10-26 15:29:56 CDT --- Thanks for attaching your log. I don't see any dsound entries in your log file, which makes me think you're probably using native dsound. Have you tried running these games with a clean WINEPREFIX (I had to run winetricks vcrun2010 to get GeneRally to work)?
For example, running from the terminal, the following works for me:
$ WINEPREFIX=~/tmp_prefix winetricks vcrun2010 $ WINEPREFIX=~/tmp_prefix wine /path/to/GeneRally.exe
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #7 from rave002@o2.pl 2011-10-26 17:34:00 CDT --- (In reply to comment #6)
Thanks for attaching your log. I don't see any dsound entries in your log file, which makes me think you're probably using native dsound. Have you tried running these games with a clean WINEPREFIX (I had to run winetricks vcrun2010 to get GeneRally to work)?
For example, running from the terminal, the following works for me:
$ WINEPREFIX=~/tmp_prefix winetricks vcrun2010 $ WINEPREFIX=~/tmp_prefix wine /path/to/GeneRally.exe
That may work, but I don't want it to be permanent solution since I configured wine to use same registry and "c drive" folder for two users (me and my Mom) so we can use same games without reinstalling them twice. I'll check it though
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #8 from rave002@o2.pl 2011-10-26 17:39:53 CDT --- Nope, with clean prefix no sound anyway
http://bugs.winehq.org/show_bug.cgi?id=28880
rave002@o2.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 |P1
--- Comment #9 from rave002@o2.pl 2011-10-26 19:43:44 CDT --- Other game when it happens it's Marble Arena 1.4.
http://bugs.winehq.org/show_bug.cgi?id=28880
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P2
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #10 from Andrew Eikum aeikum@codeweavers.com 2011-10-27 09:25:57 CDT --- The sound in that game also works for me.
I'm still confused why the dsound TRACEs aren't showing up in your log file. When you run winecfg, do you have any overrides listed on the Libraries tab? What are they?
(In reply to comment #7)
That may work, but I don't want it to be permanent solution since I configured wine to use same registry and "c drive" folder for two users (me and my Mom) so we can use same games without reinstalling them twice. I'll check it though
It was just a quick test to see if you had settings in your wineprefix that were causing problems. You can get rid of ~/tmp_prefix if you want.
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #11 from rave002@o2.pl 2011-10-27 09:48:08 CDT --- Created attachment 37151 --> http://bugs.winehq.org/attachment.cgi?id=37151 DLL overrides registry branch
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #12 from rave002@o2.pl 2011-10-27 09:48:39 CDT --- Added overrides registry key.
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #13 from Andrew Eikum aeikum@codeweavers.com 2011-10-27 09:54:54 CDT --- Yow, that's a lot of overrides. Can you attach a log with a clean prefix, so we can see what's going wrong without all the overrides? For example:
$ rm -rf ~/tmp_prefix $ WINEPREFIX=~/tmp_prefix winetricks vcrun2010 $ WINEPREFIX=~/tmp_prefix WINEDEBUG=+tid,+mmdevapi,+winmm,+midi,+dsound,+dmusic,+oss,+alsa,+coreaudio wine /path/to/GeneRally.exe &> log.txt
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #14 from rave002@o2.pl 2011-10-27 10:13:42 CDT --- Created attachment 37152 --> http://bugs.winehq.org/attachment.cgi?id=37152 Clean log from running generally. Still no sound.
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #15 from rave002@o2.pl 2011-10-27 10:15:37 CDT --- Added log from running GR from clean prefix.
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #16 from Andrew Eikum aeikum@codeweavers.com 2011-10-27 10:23:48 CDT --- There are still no dsound traces in there. We should at least see the DLL getting loaded. Let's find out why dsound isn't getting loaded. Can you attach another log with +relay,+loaddll,+module (in addition to the other channels)? This one will be a bit bigger than the others, so you might have to compress it before you can attach it.
P.S. You can enter a comment on the Add Attachment page in Bugzilla, so you don't need to add an additional comment for each attachment.
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #17 from rave002@o2.pl 2011-10-28 10:24:33 CDT --- Oookay, this is becoming stranger. The sound in Little Fighter 2, which is running through Wine too is working. I don't know why it is happening and I'll add log with +relay,+loaddll,+module of generally in a minute
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #18 from rave002@o2.pl 2011-10-28 10:31:17 CDT --- Created attachment 37171 --> http://bugs.winehq.org/attachment.cgi?id=37171 Log from running GR with +relay,+loaddll,+module
http://bugs.winehq.org/show_bug.cgi?id=28880
rave002@o2.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #37136|0 |1 is obsolete| |
http://bugs.winehq.org/show_bug.cgi?id=28880
rave002@o2.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #37171|Log from running GR with |Log from running GR with description|+relay,+loaddll,+module |+tid,+mmdevapi,+winmm,+midi | |,+dsound,+dmusic,+oss,+alsa | |,+coreaudio,+relay,+loaddll | |,+module
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #19 from rave002@o2.pl 2011-10-28 10:34:45 CDT --- Comment on attachment 37171 --> http://bugs.winehq.org/attachment.cgi?id=37171 Log from running GR with +tid,+mmdevapi,+winmm,+midi,+dsound,+dmusic,+oss,+alsa,+coreaudio,+relay,+loaddll,+module
Still no sound, but in LittleFighter2 which runs on same prefix sound is present (also it's present in winecfg's Sound Test, i.e. after clicking this button sound plays).
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #20 from Andrew Eikum aeikum@codeweavers.com 2011-10-28 11:01:02 CDT --- Ah ha! Are all of the games with broken sound SDL games? This is exactly like Bug 28010, Comment 7.
What happens if you unset your SDL_AUDIODRIVER environment variable:
$ export SDL_AUDIODRIVER= $ wine ......
You can play around with your various wineprefixes. I still fear that one with all the overrides, though...
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #21 from rave002@o2.pl 2011-10-28 11:29:15 CDT --- Hm, if I unset SDL_AUDIODRIVER, sound is present, BUT is very choppy - like you'd play sound with play/pause button pressed down.
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #22 from rave002@o2.pl 2011-10-28 11:31:32 CDT --- Also with this being unset, I don't have sound in Linux sdl games, like supertux (which is pretty logical since it no sound driver is selected in SDL env vars). So it's no-go for me.
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #23 from Andrew Eikum aeikum@codeweavers.com 2011-10-28 11:35:13 CDT --- (In reply to comment #21)
Hm, if I unset SDL_AUDIODRIVER, sound is present, BUT is very choppy - like you'd play sound with play/pause button pressed down.
Get a log, preferably in the clean prefix? (Don't need +relay,+loaddll,+module anymore.)
(In reply to comment #22)
Also with this being unset, I don't have sound in Linux sdl games, like supertux (which is pretty logical since it no sound driver is selected in SDL env vars). So it's no-go for me.
Yeah, you'd need a way to unset it only for Wine. I'm looking into a better solution, like a hack in Wine to unset that particular environment variable, but no promises. I've added this information to the Sound wiki page, anyway.
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #24 from rave002@o2.pl 2011-10-28 13:02:56 CDT --- I'll upload log in a minute, in the meantime, I made small shell script to run sdl games:
#!/bin/sh export TMPSDLADRV=$SDL_AUDIODRIVER export SDL_AUDIODRIVER= wine $1 export SDL_AUDIODRIVER=$TMPSDLADRV
and saved it as wine-sdl in /usr/bin
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #25 from rave002@o2.pl 2011-10-28 13:05:24 CDT --- Created attachment 37172 --> http://bugs.winehq.org/attachment.cgi?id=37172 Log of sloppy sound with empty SDL_AUDIODRIVER
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #26 from rave002@o2.pl 2011-10-28 13:06:38 CDT --- Comment on attachment 37172 --> http://bugs.winehq.org/attachment.cgi?id=37172 Log of sloppy sound with empty SDL_AUDIODRIVER
Sound is also distorted with a noise and kinda lower pitch
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #27 from Andrew Eikum aeikum@codeweavers.com 2011-10-28 13:14:54 CDT --- Created attachment 37173 --> http://bugs.winehq.org/attachment.cgi?id=37173 wine.inf: Add empty SDL_AUDIODRIVER environment variable
Thanks, I'll take a look.
About the SDL issue, I sent a patch which overrides this environment variable in Wine by default, so you won't have to work around it anymore. We'll see if it gets in on Monday. I've attached it here.
(In reply to comment #24)
I'll upload log in a minute, in the meantime, I made small shell script to run sdl games:
Good idea. A simpler script would just be:
#!/bin/sh SDL_AUDIODRIVER= wine $@
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #28 from rave002@o2.pl 2011-10-28 13:24:40 CDT --- Created attachment 37174 --> http://bugs.winehq.org/attachment.cgi?id=37174 An example how sound sounds in games
I've added an example, made with Audacity how sound works in games. At least works, but is *very* choppy.
http://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #29 from rave002@o2.pl 2011-10-31 14:51:13 CDT --- Well? Any idea how to fix choppyness of the sound?
http://bugs.winehq.org/show_bug.cgi?id=28880
Jörg Höhle hoehle@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|No sound in some Directx |No sound in DirectX/SDL |games |games (need empty | |$SDL_AUDIODRIVER)
http://bugs.winehq.org/show_bug.cgi?id=28880
Jarkko K jarkko_korpi@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jarkko_korpi@hotmail.com
--- Comment #30 from Jarkko K jarkko_korpi@hotmail.com --- Is this really an issue still?
Wine is now at 1.7.18 (devel version).
https://bugs.winehq.org/show_bug.cgi?id=28880
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=28880
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #31 from joaopa jeremielapuree@yahoo.fr --- Tested gene-rally with wine-4.0rc1.Sound is here. Can an administrator close this bug as FIXED?
https://bugs.winehq.org/show_bug.cgi?id=28880
--- Comment #32 from Andrew Eikum aeikum@codeweavers.com --- The problem of leaking the Linux SDL environment variable into the Windows environment still exists. It's not clear to me if that is Wine's responsibility to fix.
https://bugs.winehq.org/show_bug.cgi?id=28880
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 CC| |joseph.kucia@gmail.com Status|UNCONFIRMED |NEW
--- Comment #33 from Józef Kucia joseph.kucia@gmail.com --- Wine already handles some environment variables in a special way, e.g. Vulkan and QT environment variables. Perhaps we should simply add SDL environment variables to the list. See is_special_env_var() in dlls/kernel32/process.c.