http://bugs.winehq.org/show_bug.cgi?id=17403
Summary: Uru - Ages Beyond Myst + Expansion Packs: Decompressing sounds produces faulty output Product: Wine Version: 1.1.15 Platform: Other OS/Version: other Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: diafero@arcor.de
This is a problem with Uru - Ages Beyond Myst with the expansion packs To D'ni and The Path of the Shell. This game saves all the sounds in ogg format, but most of them are decompressed to one or two wav files (sometimes mono/joined stereo, sometimes one for the left and one for the right speaker). These wav files will then be used in game. The decompressing is done by a dedicated app called "SoundDecompress.exe" which is called by the installer after installation finished. This app generally works fine in wine, it decompresses the right ogg files to the right wav files, and the wav files can be played by aplay or kaffeine. However, the game itself is unable to use the wav files, I hear nothing in game. If I use the files which were created by running SoundDecompress on Windows, everything works fine, so I think the fault occurs while running the decompress, but I wouldn't know how to check that. The files created on Windows are bigger than the ones which were created on wine.
http://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #1 from Austin English austinenglish@gmail.com 2009-08-26 13:24:43 --- Is this still present in current (1.1.28 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #2 from diafero@arcor.de 2009-08-29 03:51:14 --- Yes, it is.
There also is a free demo of Uru available, maybe it can be used to reproduce the bug: http://download.cnet.com/Uru-Ages-Beyond-Myst-demo/3000-7495_4-10245688.html
http://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #3 from Austin English austinenglish@gmail.com 2009-08-29 12:17:00 --- (In reply to comment #2)
Yes, it is.
There also is a free demo of Uru available, maybe it can be used to reproduce the bug: http://download.cnet.com/Uru-Ages-Beyond-Myst-demo/3000-7495_4-10245688.html
Please test the demo before asking others to do so.
http://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #4 from diafero@arcor.de 2009-09-01 11:32:12 --- Sorry, I was in a hurry when I wrote the last comment. I now tested the demo (downloaded from http://www.gamershell.com/download_4119.shtml because the other link gave a very slow download) and can confirm the issue:
After installing, on the first launch, the game decompresses some (most) of the ogg files (located in gamefolder/sfx) to wav files (in gamefolder/sfx/streamingCache). These wav files are obviously incorrect, as in the game, I do not hear footstep sounds. However I do hear music when approaching the caravan (just one straight forward), which is directly streamed from the ogg file. Copying the wav files from a Windows installation fixes the sound issues.
http://bugs.winehq.org/show_bug.cgi?id=17403
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://www.gamershell.com/d | |ownload_4119.shtml
http://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #5 from diafero@arcor.de 2009-11-03 14:28:20 --- I had a look at this issue again with wine 1.1.32 and it persists. While trying to find out what the difference between the two files is, I noticed that the sample rate and other properties are completely correct. However the file does not even contain all the original sound data (when listening to both the files created by Windows and the one created by wine, the latter seems to start a bit later). I then opened both in Audacity to compare them, and indeed wine's file is quite a bit shorter. I attached a screenshot of the two files in Audacity, roughly aligned (the upper one is the correct one, below is the faulty file).
I don't even know what part of wine might be responsible for this problem - maybe I can replace some file(s) with native ones to circumvent the problem?
http://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #6 from diafero@arcor.de 2009-11-03 14:30:41 --- Created an attachment (id=24534) --> (http://bugs.winehq.org/attachment.cgi?id=24534) showing both sound files in Audacity: Above the correct one, below what is created with wine
http://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #7 from diafero@arcor.de 2009-11-04 10:37:26 --- If I replace the builtin winmm.dll file with a native one and tell winecfg to actually use that native dll file, sound decompression works perfectly (the md5sums of the files created on Windows and the ones created on Wine are the same). However, I have to switch back to the builtin winmm.dll to actually get any sound in the game. Obviously, the problem is somewhere in winmm.
http://bugs.winehq.org/show_bug.cgi?id=17403
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de Component|-unknown |winmm&mci
http://bugs.winehq.org/show_bug.cgi?id=17403
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |gyebro69@gmail.com Ever Confirmed|0 |1
--- Comment #8 from GyB gyebro69@gmail.com 2012-03-04 12:16:10 CST --- This is still a problem as of Wine-1.4-rc6. I tested with the demo for Uru: Ages Beyond MYST. http://www.fileplanet.com/133011/130000/fileinfo/Uru:-Ages-Beyond-MYST-Demo
There is something going wrong during the sound decompression stage, when using the built-in winmm.dll. This is done on the first game start. Therefore audio is missing in the game (footsteps, ambient sounds), except for the background music. Music is playing because it is not converted from ogg to wav but played directly from the corresponding .ogg file. Native winmm.dll is needed to correctly decompress the audio files. After the conversion is done, winmm must be set back to built-in (no audio in the game with the native one).
I wonder if a debug log (e.g. +winmm,+tid,+mmio,+mmtime,+mci,+driver) would be of any help?
Fedora 16 Alsa 1.0.25 Pulseaudio is not running Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2)
http://bugs.winehq.org/show_bug.cgi?id=17403
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hoehle@users.sourceforge.ne | |t
--- Comment #9 from André H. nerv@dawncrow.de 2012-03-05 12:10:17 CST --- Adding Jörg here
http://bugs.winehq.org/show_bug.cgi?id=17403
Andrew Eikum aeikum@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aeikum@codeweavers.com
http://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #10 from Jörg Höhle hoehle@users.sourceforge.net 2012-11-05 05:37:22 CST --- The bug descriptions above are not completely clear to me. With Wine's winmm, SoundDecompress.exe creates a file with the same format (rate, channels etc.) as native and valid data (kaffeine plays it, comment #0), right? Audacity's screenshot in attachment #24534 (comment #5) shows that it contains a subset of native's data, missing begin and end parts. Now instead of playing these shorter but correctly formed .wav files, the app plays nothing (but music, comment #8). Do these wav files contain one coherent sound or are these a concatenation of lots of different sounds?
http://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #11 from diafero@arcor.de 2012-11-13 15:05:17 CST --- I just tested this again on Wine 1.5.17. The bug is still present, however now the game crashes when it should play a sound. I had a look at the file in Audacity again, and it still looks the same as it did two years ago.
(In reply to comment #10)
The bug descriptions above are not completely clear to me. With Wine's winmm, SoundDecompress.exe creates a file with the same format (rate, channels etc.) as native and valid data (kaffeine plays it, comment #0), right?
The part which VLC shows are the same: rate, channels, bits per sample
Audacity's screenshot in attachment #24534 [details] (comment #5) shows that it contains a subset of native's data, missing begin and end parts. Now instead of playing these shorter but correctly formed .wav files, the app plays nothing (but music, comment #8).
Correct - or it crashes, with Wine 1.5.17. I am however not sure these wav files are well-formed - all I know is VLC and Audacity play them. The music is not coming from wav files, the game directly uses the ogg files to play it, so it is unaffected by the problems during sound decompression.
Do these wav files contain one coherent sound or are these a concatenation of lots of different sounds?
Each wav file is a single sound, like a door closing, a button being pressed.
http://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #12 from Jörg Höhle hoehle@users.sourceforge.net 2012-11-19 07:39:27 CST ---
however now the game crashes [...] two years ago.
To speed up regression testing, use the paths argument to git bisect e.g. git bisect start 1.5.17 1.1.15 -- dlls/winmm/ dlls/winealsa.drv/ dlls/msacm*/ then check whether the parent^ commit works and file a separate bug report about the regression (check for duplicates first).
You may also check the changes to winmm/mmio.c in 1.5.17+emerging 1.5.18
http://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #13 from Jörg Höhle hoehle@users.sourceforge.net 2012-12-12 09:54:52 CST --- Did you guys check bug #28982 and bug #19566? Each of these has patches to winmm's MMIO and the mmio tests still contain some todo_wine. Perhaps that's related?
http://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #14 from diafero@arcor.de 2012-12-13 08:33:14 CST --- I will check these patches, thanks.
I did not yet do the giant bisect as that will take a huge amount of time (we are talking about ~3 years of wine history here) - only to find out when one kind of failure (file doesn't play) is replaced by another (game crashes).
http://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #15 from diafero@arcor.de 2012-12-13 09:33:18 CST --- The 2nd patch you mentioned has already landed in wine 1.5.19, which did not help. The first one did not change anything either.
It just came to my mind that the behavioural change might also be caused by a difference in my wine setup (well, this is a totally different machine than back then, but anyway): I am now using PulseAudio, and the winepulse driver from http://repo.or.cz/w/wine/multimedia.git (without these, sound is mostly broken, not only in Uru but also in other games).
http://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #16 from Rosanne DiMesio dimesio@earthlink.net 2012-12-13 12:06:27 CST --- (In reply to comment #15)
It just came to my mind that the behavioural change might also be caused by a difference in my wine setup (well, this is a totally different machine than back then, but anyway): I am now using PulseAudio, and the winepulse driver from http://repo.or.cz/w/wine/multimedia.git (without these, sound is mostly broken, not only in Uru but also in other games).
I downloaded the demo from http://www.fileplanet.com/133011/130000/fileinfo/Uru:-Ages-Beyond-MYST-Demo (neither of the two links mentioned above worked for me). I am not using winepulse, and the demo does not crash for me when it tries to play a sound effect.
http://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #17 from Jörg Höhle hoehle@users.sourceforge.net 2012-12-14 04:42:35 CST --- diafero or Gyb, please show md5sums of at least one file generated by Decompress.Exe a) on a native box or with a native winmm.dll (identical according to comment #7) and b) with Wine's winmm.dll. That'll allow others, e.g. Rosanne to assess what sort of file they got.
BTW, I'd be interested to know whether a native box with all sound drivers disabled passes the Decompress stage. I believe it should, because the codecs do not depend on an actual backend. I'm curious how Wine would react.
winepulse should make no difference in an original winmm bug. It may make a difference w.r.t. the crash initially reported in comment #11. BTW, attaching a backtrace (from Wine compiled from source incl. debug info) may help with crashes, together with a short log of the last calls prior to the crash.
http://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #18 from diafero@arcor.de 2012-12-20 12:03:56 CST --- (In reply to comment #17)
diafero or Gyb, please show md5sums of at least one file generated by Decompress.Exe a) on a native box or with a native winmm.dll (identical according to comment #7) and b) with Wine's winmm.dll. That'll allow others, e.g. Rosanne to assess what sort of file they got.
md5sums of broken files: f773fa6cb852a1baf6b6fbd7f2851a6f xLink-Stereo.wav a20e6a6b0d91a475003b81616f3c688e xLink.wav
md5sums of correct files (copied from a Windows installation): 99288161b22accc823e910757765e3c2 xLink-Stereo.wav 1ce28dee24d8dcc1a49342f9f4586a4e xLink.wav
winepulse should make no difference in an original winmm bug. It may make a difference w.r.t. the crash initially reported in comment #11. BTW, attaching a backtrace (from Wine compiled from source incl. debug info) may help with crashes, together with a short log of the last calls prior to the crash.
How do I catch such a backtrace? When the crash happened, the application still had the X cursor grabbed, so I had to Ctrl-Alt-Backspace to get rid of it... I can of course try to redirect all output to some file, but will the default output contain all necessary information? Also, I have no idea whether my compiled-from-source wine has debug information, but I guess I will be able to tell from the backtrace^^
http://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #19 from Rosanne DiMesio dimesio@earthlink.net 2012-12-20 13:15:17 CST ---
(In reply to comment #18)
md5sums of broken files: f773fa6cb852a1baf6b6fbd7f2851a6f xLink-Stereo.wav a20e6a6b0d91a475003b81616f3c688e xLink.wav
md5sums of correct files (copied from a Windows installation): 99288161b22accc823e910757765e3c2 xLink-Stereo.wav 1ce28dee24d8dcc1a49342f9f4586a4e xLink.wav
Mine don't match either one: 586d1f84ebb98ec4fca5b45592024cee xLink-Stereo.wav 7b831cc21704d8a88dabdd3a17405580 xLink.wav
https://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #20 from Béla Gyebrószki gyebro69@gmail.com --- Still present in 1.7.35
https://bugs.winehq.org/show_bug.cgi?id=17403
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |erichv@verizon.net
--- Comment #21 from Piotr Caban piotr.caban@gmail.com --- *** Bug 34973 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=17403
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr.caban@gmail.com
--- Comment #22 from Piotr Caban piotr.caban@gmail.com --- I've sent patches that fixes this bug in Uru: Age Beyond Myst demo: http://source.winehq.org/patches/data/109261 http://source.winehq.org/patches/data/109262
It's needed to remove broken wav files or reinstall the game to get it running with the patches.
https://bugs.winehq.org/show_bug.cgi?id=17403
--- Comment #23 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Piotr Caban from comment #22)
I've sent patches that fixes this bug in Uru: Age Beyond Myst demo: http://source.winehq.org/patches/data/109261 http://source.winehq.org/patches/data/109262
It's needed to remove broken wav files or reinstall the game to get it running with the patches.
The patches fix the missing audio issue in URU:Complete Chronicles and MYST: Uru Online as well. Thanks a lot!
https://bugs.winehq.org/show_bug.cgi?id=17403
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |860618622e6d397f27000580255 | |7b758256970fe Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #24 from Piotr Caban piotr.caban@gmail.com --- The patches are in wine. Marking as fixed.
https://bugs.winehq.org/show_bug.cgi?id=17403
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #25 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.38.