[Bug 29497] New: Alonix only plays every other sound effect in menus
http://bugs.winehq.org/show_bug.cgi?id=29497 Bug #: 29497 Summary: Alonix only plays every other sound effect in menus Product: Wine Version: 1.3.36 Platform: x86-64 URL: http://www.axysoft.com/alonix/Alonix.exe OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: winealsa.drv AssignedTo: wine-bugs(a)winehq.org ReportedBy: RandomAccountName(a)mail.com CC: aeikum(a)codeweavers.com Classification: Unclassified Regression SHA1: 8258a5188cc36563809ac7495e49bc43ae4326e4 Created attachment 38199 --> http://bugs.winehq.org/attachment.cgi?id=38199 +tid,+mmdevapi,+winmm,+midi,+dsound,+dmusic,+mci,+oss,+alsa,+coreaudio log (1.3MB) When moving the cursor over an item in the menus, Alonix normally plays a sound effect. However, since 1.3.30, this only works for every other item in the menu. Regression testing indicated: 8258a5188cc36563809ac7495e49bc43ae4326e4 is the first bad commit commit 8258a5188cc36563809ac7495e49bc43ae4326e4 Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Fri Sep 23 15:03:51 2011 -0500 winealsa.drv: Remove wave, mixer, and dsound driver code. :040000 040000 e34e9dab6f585755d23f4cad91d4af6dc37b786b bf2a47c73bcdd75db339177384a4d566c4fa41e6 M dlls git checkout 8258a5188cc36563809ac7495e49bc43ae4326e4 -> only every other sound is played git checkout 8258a5188cc36563809ac7495e49bc43ae4326e4^ - every sound is played I use ALSA only, Pulseaudio is not installed. Other open bugs indicating this commit: bug 28706, bug 28856 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29497 A Wine user <RandomAccountName(a)mail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, regression -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29497 Jörg Höhle <hoehle(a)users.sourceforge.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hoehle(a)users.sourceforge.ne | |t --- Comment #1 from Jörg Höhle <hoehle(a)users.sourceforge.net> 2011-12-31 10:40:03 CST --- This is possibly a duplicate of bug #29472 -- DSound erroneously using mmdevapi GetPosition -- rather than bug #29299 -- ALSA needs a full period to start. DSound is fed 50KB of data, yet PerformMix only sends 512 frames to mmdevapi. It is perhaps confused by GetPosition returning 0 because ALSA has not yet started to play. ALSA will not start yet because it wants at least one period worth of data. DSound must nevertheless stream data into mmdevapi. After start at time 2908ms, it is only ~1s later at time 3848ms that DSound writes another 512 frames, causing ALSA to start. Does the app then play the sound effect twice (like old bug #26878)?
AudioClient_Initialize ALSA period: 940 frames AudioClient_Initialize ALSA buffer: 3763 frames AudioClient_Initialize MMDevice period: 441 frames AudioClient_Initialize MMDevice buffer: 5120 frames You appear to be using ALSA's rate converter plugin + dmix, running at and resampling to 48000 Hz while the app requests 44100. We'll have to keep in mind that when rounding is involved, pcm_set_periods_near(4) does not guarantee that ALSA's buffer is an exact multiple of the period size in frames. In this case, the period time is 21333.333µs (a little more than 940 frames) and ALSA computes 3763 frames, not 3764 or 3760!
-- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29497 --- Comment #2 from A Wine user <RandomAccountName(a)mail.com> 2012-01-01 01:51:51 CST --- (In reply to comment #1)
After start at time 2908ms, it is only ~1s later at time 3848ms that DSound writes another 512 frames, causing ALSA to start. Does the app then play the sound effect twice (like old bug #26878)?
No - I don't hear any duplicated sound effects when the sound does work. FWIW, it seems the workaround for bug 22018 also works around this one. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29497 --- Comment #3 from Jörg Höhle <hoehle(a)users.sourceforge.net> 2012-01-02 12:28:01 CST ---
the workaround for bug 22018 Installing DMusic helps?!? The explanation that comes to mind is that the app then either plays music or silence while in the menus, hence keeping the mixer up and running, so the sound effects are mixed in.
pcm_set_periods_near(4) set_buffer_time_near or _size_near has the same effect, 3763 frames is what ALSA insists upon using. That is ~4x 1024 * 44100/48000.
-- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29497 --- Comment #4 from A Wine user <RandomAccountName(a)mail.com> 2012-01-28 05:27:06 CST --- In 1.4-rc1, the menus in this game are now completely silent with ALSA+dmix. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29497 --- Comment #5 from Andrew Eikum <aeikum(a)codeweavers.com> 2012-03-12 13:24:14 CDT --- I can't get this game to start in wine-1.4-143-g7b64983. It just crashes after I click "Play Demo". Any hints? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29497 --- Comment #6 from A Wine user <RandomAccountName(a)mail.com> 2012-03-13 04:53:15 CDT --- It's still working for me with a fresh prefix, but installing native DirectMusic now makes it crash on startup... This crash goes away with ddr=gdi, so maybe that would help? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29497 A Wine user <RandomAccountName(a)mail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED --- Comment #7 from A Wine user <RandomAccountName(a)mail.com> 2012-05-11 05:07:46 CDT --- This bug is fixed in wine-1.5.3-264-gde9d18c. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29497 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #8 from Alexandre Julliard <julliard(a)winehq.org> 2012-05-11 13:22:29 CDT --- Closing bugs fixed in 1.5.4. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org