http://bugs.winehq.org/show_bug.cgi?id=36802
Bug ID: 36802 Summary: warn:winmm:get_mmioFromProfile can't find SystemSound Product: Wine Version: 1.7.16 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winmm&mci Assignee: wine-bugs@winehq.org Reporter: joe@nahmias.net
Running Debian unstable i386, with an x86_64 kernel, wine-unstable 1.7.16. Installed original Gazillionaire game (looks to be VB 3.0 based) in a fresh WINEPREFIX, with WINEARCH=win32.
When trying to play the original Gazillionaire game (looks to be VB 3.0 based), I don't get any sound output. Digging deeper, I was able to see the following wine trace messages / warnings:
$ WINEDEBUG=+winmm WINEPREFIX=/usr/local/wine/Gazillionaire wine-unstable C:/GAZ/GAZCD.EXE trace:winmm:DllMain 0x7e650000 0x1 (nil) fixme:hook:SetWindowsHookEx16 hook type 6 broken in Win16 trace:winmm:MULTIMEDIA_PlaySound pszSound='0x197878' hmod=(nil) fdwSound=00010001 trace:winmm:proc_PlaySound SoundName=L"D:\BOOM.WAV" ! trace:winmm:get_mmioFromProfile searching in SystemSound list for L"D:\BOOM.WAV" warn:winmm:get_mmioFromProfile can't find SystemSound=L"D:\BOOM.WAV" ! trace:winmm:proc_PlaySound Done playing=L"D:\BOOM.WAV" => ko! trace:winmm:MULTIMEDIA_PlaySound pszSound='0x17f7d8' hmod=(nil) fdwSound=00010001 trace:winmm:proc_PlaySound SoundName=L"D:\URBANJU.WAV" ! trace:winmm:get_mmioFromProfile searching in SystemSound list for L"D:\URBANJU.WAV" warn:winmm:get_mmioFromProfile can't find SystemSound=L"D:\URBANJU.WAV" ! trace:winmm:proc_PlaySound Done playing=L"D:\URBANJU.WAV" => ko! trace:winmm:MULTIMEDIA_PlaySound pszSound='0x17f9f0' hmod=(nil) fdwSound=00010001 trace:winmm:proc_PlaySound SoundName=L"D:\Silence.WAV" ! trace:winmm:get_mmioFromProfile searching in SystemSound list for L"D:\Silence.WAV" warn:winmm:get_mmioFromProfile can't find SystemSound=L"D:\Silence.WAV" ! trace:winmm:proc_PlaySound Done playing=L"D:\Silence.WAV" => ko!
The problem is that these files DO EXIST, albeit with different case for the filename, and I can see them in wine's file explorer. However, I expect wine to be case-insensitive the way windows is, and indeed I don't see any problems with the rest of the game.
Any ideas? --Joe
http://bugs.winehq.org/show_bug.cgi?id=36802
--- Comment #1 from joe@nahmias.net joe@nahmias.net --- Follow-up: I mounted the ISO image with check=relaxed which folds the case of filenames when doing any lookups/accesses and I still see the same errors.
Help!
http://bugs.winehq.org/show_bug.cgi?id=36802
--- Comment #2 from joe@nahmias.net joe@nahmias.net --- For example:
$ ls -l /usr/local/wine/Gazillionaire/dosdevices/D:/{BOOM,Silence,URBANJU}.WAV -r-xr-xr-x 1 root root 73374 Oct 21 1992 /usr/local/wine/Gazillionaire/dosdevices/D:/BOOM.WAV -r-xr-xr-x 1 root root 196 Aug 19 1994 /usr/local/wine/Gazillionaire/dosdevices/D:/Silence.WAV -r-xr-xr-x 1 root root 153220 Aug 21 1994 /usr/local/wine/Gazillionaire/dosdevices/D:/URBANJU.WAV
http://bugs.winehq.org/show_bug.cgi?id=36802
Sagawa sagawa.aki+winebugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sagawa.aki+winebugs@gmail.c | |om
--- Comment #3 from Sagawa sagawa.aki+winebugs@gmail.com --- Hello Joe, I'll look into this issue. I'll prepare a patch in a few days later.
In detail, your application log shows a strange usage of PlaySound.
trace:winmm:MULTIMEDIA_PlaySound pszSound='0x197878' hmod=(nil) fdwSound=00010001
fdwSound (0x00010001 = SND_ALIAS | SND_ASYNC) means pszSound is an alias of system event, not a file name. If the alias name isn't found in your profile (registry or win.ini), the behaviour is not well documented. So, Wine does nothing. However, Windows treats it as a file name then.
http://bugs.winehq.org/show_bug.cgi?id=36802
--- Comment #4 from joe@nahmias.net joe@nahmias.net --- Hi Sagawa,
Thanks for looking into this. I'm currently stuck on version 1.7.16 due to bug with Battle.Net in later versions. So, please prepare you patch against this version so I can test.
Thanks, --Joe
https://bugs.winehq.org/show_bug.cgi?id=36802
--- Comment #5 from Sagawa sagawa.aki+winebugs@gmail.com --- Created attachment 48926 --> https://bugs.winehq.org/attachment.cgi?id=48926 proposed patch
Hi Joe, Here is a proposed patch that fixes this issue. You need to apply this patch against wine source code tree and compile it. Did you mean update patch? If so, I'm afraid I can't give you an update for your 1.7.16 package because I don't have Debian unstable environment. Does it work for you? Thanks in advance.
http://bugs.winehq.org/show_bug.cgi?id=36802
--- Comment #6 from joe@nahmias.net joe@nahmias.net --- Hi Sagawa,
I tested your patch against 1.7.16 and it solved the issue. I now hear the sound effects properly in Gazillionaire -- and it didn't break other things. So please go ahead and get this merged for the next version. Next time you're in NYC, $beverage is on me :)
Thanks again, --Joe
https://bugs.winehq.org/show_bug.cgi?id=36802
--- Comment #7 from Sagawa sagawa.aki+winebugs@gmail.com --- Thanks Joe for testing. The patch was committed: http://source.winehq.org/git/wine.git/commit/113a2abbc8257fc4d83682c5c5fe4f3...
https://bugs.winehq.org/show_bug.cgi?id=36802
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |113a2abbc8257fc4d83682c5c5f | |e4f344569806f Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #8 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Sagawa from comment #7)
Thanks Joe for testing. The patch was committed: http://source.winehq.org/git/wine.git/commit/ 113a2abbc8257fc4d83682c5c5fe4f344569806f
Resolving fixed.
https://bugs.winehq.org/show_bug.cgi?id=36802
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.23.