http://bugs.winehq.org/show_bug.cgi?id=20472
Summary: Messed OpenAL surround sound channels in TMNF Product: Wine Version: 1.1.32 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-dsound AssignedTo: wine-bugs@winehq.org ReportedBy: pitel@nomi.cz
TrackMania Nations Forever uses openal. When I play it, it has somehow reverted channels. I hear sound of engine and car crashes from rear speakers.
Warsow uses oal too, and the sound is fine here.
http://bugs.winehq.org/show_bug.cgi?id=20472
--- Comment #1 from Jan Kalab pitel@nomi.cz 2009-10-26 08:59:18 --- I tested my speakers using this testapp: http://frictionalgames.com/forum/showthread.php?tid=521
Front/rear speakers works fine here.
http://bugs.winehq.org/show_bug.cgi?id=20472
--- Comment #2 from Austin English austinenglish@gmail.com 2009-10-26 13:11:03 --- Are you sure it's not a game bug, e.g., have you tested it on windows?
http://bugs.winehq.org/show_bug.cgi?id=20472
--- Comment #3 from Jan Kalab pitel@nomi.cz 2009-10-26 13:40:56 --- No, I didn't. But I think the game is pretty popular, so I guess it's not game's bug. But I can test it anyway, if it will help.
http://bugs.winehq.org/show_bug.cgi?id=20472
Chris chris.kcat@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |chris.kcat@gmail.com
--- Comment #4 from Chris chris.kcat@gmail.com 2009-10-26 14:46:12 --- Hi. I'm the author of OpenAL Soft (the Linux version of OpenAL). :)
What is your audio setup like, and what devices are selected in the games?
It would be odd if two games using the same lib and same device use different channel orders, since the channel configuration is not exposed to the app in any way. But if one of the games is using a different device, that could cause an issue.. I haven't been able to test surround sound on different setups as much as I'd like, although both the cards I've used with surround sound on ALSA used the same order, so that's what I went with, and I haven't received any reports of problems before.
I do plan to make this all more configurable in the future, but it sounds like something else may be at issue here.
http://bugs.winehq.org/show_bug.cgi?id=20472
--- Comment #5 from Jan Kalab pitel@nomi.cz 2009-10-26 15:42:12 --- Created an attachment (id=24377) --> (http://bugs.winehq.org/attachment.cgi?id=24377) Audio settings dialog
As you can see, Speakers menu is greyed out
http://bugs.winehq.org/show_bug.cgi?id=20472
--- Comment #6 from Jan Kalab pitel@nomi.cz 2009-10-26 15:42:38 --- Created an attachment (id=24378) --> (http://bugs.winehq.org/attachment.cgi?id=24378) Audio device menu
http://bugs.winehq.org/show_bug.cgi?id=20472
--- Comment #7 from Jan Kalab pitel@nomi.cz 2009-10-26 15:43:39 --- Created an attachment (id=24379) --> (http://bugs.winehq.org/attachment.cgi?id=24379) OpenAL config
http://bugs.winehq.org/show_bug.cgi?id=20472
--- Comment #8 from Jan Kalab pitel@nomi.cz 2009-10-26 15:44:58 --- I just submitted some attachements. I use Ubuntu 9.04 64bit witch disabled PulseAudio, so I use ALSA. My sound card is Creative Labs SB Live! EMU10k1 (rev 0a).
http://bugs.winehq.org/show_bug.cgi?id=20472
--- Comment #9 from Chris chris.kcat@gmail.com 2009-10-26 16:28:33 --- (In reply to comment #8)
I just submitted some attachements. I use Ubuntu 9.04 64bit witch disabled PulseAudio, so I use ALSA. My sound card is Creative Labs SB Live! EMU10k1 (rev 0a).
Weird, the SB Live is what I used to have before I got stuck with the current HDA Intel chipset.
Are you using the 32-bit or 64-bit version or Warsow? If it's the 64-bit version, it's possible it's using a different version of OpenAL than Wine. Try to make sure both are up-to-date.
http://bugs.winehq.org/show_bug.cgi?id=20472
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-dsound |-unknown Summary|Messed OpenAL surround |TrackMania Nations Forever |sound channels in TMNF |- front sounds coming rear | |speakers Alias|tmnfopenalchannels | Severity|normal |minor
http://bugs.winehq.org/show_bug.cgi?id=20472
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #24379|application/octet-stream |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=20472
--- Comment #10 from Jan Kalab pitel@nomi.cz 2009-10-27 02:54:12 --- It was 32bit version of Warsow. By the way, you can try TrackMania for yourself, it's freeware game.
http://bugs.winehq.org/show_bug.cgi?id=20472
--- Comment #11 from Chris chris.kcat@gmail.com 2009-10-27 08:00:21 --- (In reply to comment #10)
It was 32bit version of Warsow. By the way, you can try TrackMania for yourself, it's freeware game.
I was able to try both games yesterday. I noticed some anomalies with Warsow, in that it didn't sound like it used the rolloff properly, but it used all the speakers correctly as far as I can tell. TrackMania also used all the speakers correctly.
Note that Warsow by default wants libopenal.so.0, not libopenal.so.1. Some distros may still have the older lib in a different package that can be pulled in by pre-compiled dependencies (eg. libopenal0), although the correct way to handle it would be to make a symlink from libopenal.so.0 to libopenal.so.1 (I haven't yet run across an app that has an issue with this).
Out of curiosity, are you able to use mplayer's ALSA output with a 5.1 channel sound and 5.1 (6) channel output?
http://bugs.winehq.org/show_bug.cgi?id=20472
--- Comment #12 from Jan Kalab pitel@nomi.cz 2009-10-27 08:34:58 --- Hmm, then I'd like to know whats wrong with my machine when your runs TMNF fine.
I suppose I'll see some warning or error in terminal when I'll have wrong .so files.
Yes, I use mplayer with -channels 6 switch (and ao is alsa) and it plays my DVDs just fine.
http://bugs.winehq.org/show_bug.cgi?id=20472
--- Comment #13 from Chris chris.kcat@gmail.com 2009-10-27 09:00:43 --- Hmm, actually now that I give it a closer listen, I think I do hear it. Newer OpenAL's interpolate very close sounds better, so older versions could hard pan the engine to the front or back, as opposed to just slightly panned one way or the other.
I would have to say it's an app bug. The game uses Direct3D for rendering, while OpenAL's coordinate system follows OpenGL (ie. inverted Z positioning). It's possible that if they didn't properly account for that (eg. inverted the X axis instead of the Z), it would put things in back that are supposed to be in front, and vice-versa. And since the usual output for OpenAL, especially on Windows, is stereo with no front/back panning, it's quite likely they didn't catch it.
I can't say for sure since I don't have the code, but my best guess would have to be that it's an app problem. In that case, the same thing would happen on Windows if OpenAL Soft was used with surround sound, or with a hardware driver that does surround sound. If someone could double-check that on real Windows...
If you want to work around the issue, you can force TrackMania to use stereo. You can create a file somewhere, call it tm-alsoft.cfg, and put in:
format = AL_FORMAT_STEREO16
Create a shell script, export ALSOFT_CONF=<full-path-to>/tm-alsoft.cfg and run wine TmForeverLauncher.exe. Options in tm-alsoft.cfg will then overrides the ones in ~/.alsoftrc, making TrackMania use stereo while other OpenAL apps will still use surround sound. You may also need to set a different device under the [alsa] heading, but I don't know if the surround51 device will accept stereo output.
http://bugs.winehq.org/show_bug.cgi?id=20472
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #14 from Juan Lang juan_lang@yahoo.com 2009-10-28 15:37:11 --- Per Chris, not a Wine bug. (Thanks for the assistance!)
http://bugs.winehq.org/show_bug.cgi?id=20472
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Dmitry Timoshkov dmitry@codeweavers.com 2009-10-29 02:07:08 --- Closing invalid.