http://bugs.winehq.org/show_bug.cgi?id=26233
Summary: Dragon Age 2 demo - sound sometimes missing in EA logo movie Product: Wine Version: 1.3.14 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
The logo movie at startup seems to have sound on some machines, but not others. Sound works fine after the logo movie.
(I thought native devenum helped, but maybe that's only on one machine.)
http://bugs.winehq.org/show_bug.cgi?id=26233
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://na.llnet.bioware.cdn | |.ea.com/u/f/eagames/bioware | |/dragonage2/demo/DragonAge2 | |Demo_F93M2qCj_EnEsItPlRu.ex | |e
http://bugs.winehq.org/show_bug.cgi?id=26233
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=26233
Maarten Lankhorst m.b.lankhorst@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |m.b.lankhorst@gmail.com
--- Comment #1 from Maarten Lankhorst m.b.lankhorst@gmail.com 2011-02-25 02:00:06 CST --- Is there anything interesting in WINEDEBUG=+dsalsa,warn+dsound ?
http://bugs.winehq.org/show_bug.cgi?id=26233
Andrew Eikum aeikum@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aeikum@codeweavers.com
--- Comment #2 from Andrew Eikum aeikum@codeweavers.com 2011-02-25 10:24:08 CST --- Running against current master, I don't get audio in the logo movie, and then the game just crashes on a NULL pointer access. I tried the 'winetricks-alpha d3dx9_36 d3dx11_43' workaround mentioned in Bug 26205 (among several other things, including 'winetricks-alpha dragonage2_demo' and manually installing and overriding d3dx DLLs), but no change.
So, ignoring the crash, I found that a WINEDEBUG=+mmdevapi,+winmm,+dsalsa,+dsound,+alsa turned up absolutely nothing; no calls. A +relay log tells me that winmm is loaded, but no functions are called from it.
I suspect this game just doesn't like my setup. Wonder about the validity of my results above. Can someone who can get past the intro cutscene give a
http://bugs.winehq.org/show_bug.cgi?id=26233
--- Comment #3 from Andrew Eikum aeikum@codeweavers.com 2011-02-25 10:25:16 CST --- Misclicked the commit button...
Can someone who can get past the intro cutscene give a WINEDEBUG=+mmdevapi,+winmm,+dsalsa,+dsound,+alsa of the logo movie, just to see what's going on at all?
http://bugs.winehq.org/show_bug.cgi?id=26233
--- Comment #4 from Dan Kegel dank@kegel.com 2011-02-25 10:58:36 CST --- Might be a few other ideas in http://forum.winehq.org/viewtopic.php?t=11282 e.g. deleting the Bioware directory got past a similar crash on one machine.
Attaching log...
http://bugs.winehq.org/show_bug.cgi?id=26233
--- Comment #5 from Dan Kegel dank@kegel.com 2011-02-25 10:59:40 CST --- Created an attachment (id=33446) --> (http://bugs.winehq.org/attachment.cgi?id=33446) +mmdevapi,+winmm,+dsalsa,+dsound,+alsa log of getting to the main menu and then quitting.
In this session, I had no sound during the logo movies, but sound worked fine in the main menu.
http://bugs.winehq.org/show_bug.cgi?id=26233
--- Comment #6 from Andrew Eikum aeikum@codeweavers.com 2011-02-25 11:19:18 CST --- Hey, deleting the Bioware directory fixed it. Will look more closely, thanks for the tip. Wondering if this and the COD:WAW bug (Bug 16942) are related...
http://bugs.winehq.org/show_bug.cgi?id=26233
--- Comment #7 from Andrew Eikum aeikum@codeweavers.com 2011-02-28 10:24:25 CST --- There are two buffers active during the logo movie. One is set to two channels and appears to get the movie's audio data. The other has 2 channels with UseStereoSound=1 and 6 channels (5.1 surround sound) with UseStereoSound=0. During the movie, this buffer never gets non-zero audio data. After the movie, the second buffer starts getting and playing audio correctly with either config setting.
I suspect there's some ugliness when mixing buffers with different numbers of channels. The two-channel buffer seems to get clobbered by the six-channel buffer during the intro movie. Going to look into how dsound does mixing with different channels.
http://bugs.winehq.org/show_bug.cgi?id=26233
--- Comment #8 from Maarten Lankhorst m.b.lankhorst@gmail.com 2011-02-28 22:55:31 CST --- oh... dsound doesn't officially support 5.1 atm, there's a hack in that will allow 5.1 downsampling as long as the frequency/bpp of the 5.1 channel and primary are the same, maybe that would explain something?
http://bugs.winehq.org/show_bug.cgi?id=26233
--- Comment #9 from Andrew Eikum aeikum@codeweavers.com 2011-03-01 10:33:57 CST --- Hmm you could be on to something.
A primary buffer is created with format=S16_LE, rate=44100, channels=2. I believe these come from some default settings probably gotten from ALSA.
Then the buffer's format is set with SetFormat to format=S16_LE, rate=48000, channels=6. None of this fails, but it does include a rate change.
Then there's a secondary buffer created with format=S16_LE, rate=48000, channels=6. This is the one that never gets non-zero data during the intro movie, but then gets data and plays it correctly during the main menu.
Finally another secondary buffer is created with format=S16_LE, rate=48000, channels=2. This is the buffer that gets the intro movie data, which doesn't get played out of the speakers.
With UseStereoSound=1, all of the buffers are identical to above, except they all have channels=2 (and so exactly the same format). This works.
So maybe a problem mixing the 2-channel secondary buffer into the 6-channel primary. Going to keep researching, but does that sound plausible, Maarten?
http://bugs.winehq.org/show_bug.cgi?id=26233
--- Comment #10 from Maarten Lankhorst m.b.lankhorst@gmail.com 2011-03-01 11:19:35 CST --- Yeah that would definitely explain it. The 48khz 6 channel buffer won't get mixed in, causing directsound to think no data to be mixed entirely, since it advances the pointer to the minimum of all buffers mixed.
http://bugs.winehq.org/show_bug.cgi?id=26233
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor
--- Comment #11 from Austin English austinenglish@gmail.com 2011-03-01 13:27:12 CST --- Workaround:
Open ~/BioWare/Dragon Age 2 Demo/Settings/DragonAge.ini Change: [AudioOptions] UseStereoSound=0
to 1
http://bugs.winehq.org/show_bug.cgi?id=26233
--- Comment #12 from Austin English austinenglish@gmail.com 2011-03-01 13:29:24 CST --- Or change [Movies] DisableIntroMovies=0
to 1 to skip the movies completely :-).
http://bugs.winehq.org/show_bug.cgi?id=26233
Andrew Eikum aeikum@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|minor |normal
--- Comment #13 from Andrew Eikum aeikum@codeweavers.com 2011-03-01 14:49:16 CST --- Patch submitted, thanks for the guidance Maarten.
http://www.winehq.org/pipermail/wine-patches/2011-March/099440.html
http://bugs.winehq.org/show_bug.cgi?id=26233
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #14 from Austin English austinenglish@gmail.com 2011-03-02 12:51:07 CST --- (In reply to comment #13)
Patch submitted, thanks for the guidance Maarten.
http://www.winehq.org/pipermail/wine-patches/2011-March/099440.html
Works here.
Fixed by http://source.winehq.org/git/wine.git/?a=commitdiff;h=54ff22b8443fcc3023ef8d...
thanks!
http://bugs.winehq.org/show_bug.cgi?id=26233
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Alexandre Julliard julliard@winehq.org 2011-03-04 12:35:40 CST --- Closing bugs fixed in 1.3.15.
https://bugs.winehq.org/show_bug.cgi?id=26233
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net URL|http://na.llnet.bioware.cdn |https://web.archive.org/web |.ea.com/u/f/eagames/bioware |/20110329144206if_/http://n |/dragonage2/demo/DragonAge2 |a.llnet.bioware.cdn.ea.com/ |Demo_F93M2qCj_EnEsItPlRu.ex |u/f/eagames/bioware/dragona |e |ge2/demo/DragonAge2Demo_F93 | |M2qCj_EnEsItPlRu.exe Component|-unknown |directx-dsound Fixed by SHA1| |54ff22b8443fcc3023ef8d38465 | |6f2f24608a2f8