http://bugs.winehq.org/show_bug.cgi?id=15710
Summary: sound regression in 1.1.6+ Product: Wine Version: 1.1.6 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-dsound AssignedTo: wine-bugs@winehq.org ReportedBy: wine@wkresse.de CC: m.b.lankhorst@gmail.com
When starting the application Arindal http://appdb.winehq.org/objectManager.php?sClass=version&iId=5586 (no login required, just starting is enough), the volume of the PCM output is set to zero (I am using xfce4-mixer-plugin). When logged it, the volume keeps resetting to zero very often, probably related to when sounds are played or stop playing.
wine 1.1.6 introduced this problem, the current git version is still affected.
Checking the changes from 1.1.5 to 1.1.6 affecting dsound, I found commit a4a9d50dd9651a8026044613ee537f020bd1aee6. Removing that from the code tree solved the issue, so this commit introduced the problem.
commit a4a9d50dd9651a8026044613ee537f020bd1aee6 Author: Maarten Lankhorst maarten@codeweavers.com Date: Sun Sep 28 20:47:28 2008 +0200
dsound: Fix volume and panning for primary buffer.
Fixes failing dsound tests in wine.
http://bugs.winehq.org/show_bug.cgi?id=15710
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=15710
Maarten Lankhorst m.b.lankhorst@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|wine-bugs@winehq.org |m.b.lankhorst@gmail.com Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #1 from Maarten Lankhorst m.b.lankhorst@gmail.com 2008-10-22 11:48:05 --- DirectSound shouldn't touch the master volume at all, this will cause the volume control not to work on the primary buffer, but it would fix the problem.
Does removing the 2 lines with waveOutSetVolume in them in dlls/dsound/primary.c fix this issue?
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #2 from Wolfram Kresse wine@wkresse.de 2008-10-22 12:50:22 ---
Does removing the 2 lines with waveOutSetVolume in them in dlls/dsound/primary.c fix this issue?
No, the problem persists after removing these lines.
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #3 from Zhenya Zenitur@yandex.ru 2008-11-15 01:06:06 --- Created an attachment (id=17293) --> (http://bugs.winehq.org/attachment.cgi?id=17293) Windows Media Player 9.0
Windows Media Player 9.0 and S.T.A.L.K.E.R.
http://bugs.winehq.org/show_bug.cgi?id=15710
Zhenya Zenitur@yandex.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Zenitur@yandex.ru
--- Comment #4 from Zhenya Zenitur@yandex.ru 2008-11-23 03:43:58 --- I know how to fix them! Set DirectSound as Full, not Emulation! And all will works! Can you rename this bug to "... with "Emulation" mode"?
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #5 from Wolfram Kresse wine@wkresse.de 2008-11-23 09:36:40 --- This solution does not work with the Arindal application, the problem persists in 1.1.9. winecfg audio settings: Hardware Acceleration Full, Driver Emulation off.
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #6 from Zhenya Zenitur@yandex.ru 2008-11-23 10:41:41 --- I have PulseAudio in my Ubuntu 8.04. Maybe, I don't see any dugs of sound only with this? With Emulation I listel bad music. I am using only Emulation of DirectSound, because Full doesn't work early.
http://bugs.winehq.org/show_bug.cgi?id=15710
Joni L-H jonilh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jonilh@gmail.com
--- Comment #7 from Joni L-H jonilh@gmail.com 2008-11-24 09:45:59 --- In WINE 1.1.6+ (tested up to 1.1.9) Sound is extreamly choppy and eventualy crashes totaly in all WINE games I play. Using Ubuntu 8.10 (with Pulseaudio) WINE 1.1.5 and earlyer dose not have this problem. Im guessing its related to these other problems peopel seams to have with sound sins WINE 1.1.6.
http://bugs.winehq.org/show_bug.cgi?id=15710
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aardvark@krl.com
--- Comment #8 from Austin English austinenglish@gmail.com 2008-11-24 15:31:27 --- *** Bug 16045 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #9 from Zhenya Zenitur@yandex.ru 2008-11-26 07:32:21 --- Joni L-H, I don't see this bug if Emulation is off. Full mode works now.
http://bugs.winehq.org/show_bug.cgi?id=15710
Andrzej Kardaś andrzej.kardas@kardasa.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |andrzej.kardas@kardasa.pl
--- Comment #10 from Andrzej Kardaś andrzej.kardas@kardasa.pl 2008-11-26 11:57:38 --- (In reply to comment #9)
Joni L-H, I don't see this bug if Emulation is off. Full mode works now.
I have the PCM muting bug when using Lord Of The Rings On line game in gentoo-linux 2.6.25-r9 with wine-1.1.6 to 1.1.9 (from portage tree) on SB Audigy 4 Pro with alsa 1.0.18. Switching emulation on and off doesnt change anything for me. I have same bug with both options.
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #11 from Joni L-H jonilh@gmail.com 2008-11-26 13:22:55 --- Zhenya, just as Andrzej Kardaś the choppy sound is there also with no emulation and full acceleration. I also have a Sound Blaster card. although a older 5.1 Live!
http://bugs.winehq.org/show_bug.cgi?id=15710
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|sound regression in 1.1.6+ |Using OSS audio causes PCM | |device to be muted
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #12 from Wolfram Kresse wine@wkresse.de 2008-11-30 18:16:57 --- Maarten, the bug seems to be caused by lines 172/173 of dlls/dsound/primary.c. That particular call to IDsDriverBuffer_SetVolumePan did not exist before your commit. Removing these two lines from the current git version and leaving the rest untouched solves the problem for me. But since I have no idea what the whole code actually does (i.e., what the removal of this call changes on a global scale), I cannot tell whether this actually fixes the bug, or whether this just solves the symptom, but causes a bug somewhere else.
Can you please look into it? (somewhat off-topic: and maybe also look at bug #12286 which is also related to changes you made :o) )
http://bugs.winehq.org/show_bug.cgi?id=15710
idn aidenn@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aidenn@gmail.com
--- Comment #13 from idn aidenn@gmail.com 2008-12-07 14:12:16 --- The bug is still present in 1.1.10.
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #14 from Andrzej Kardaś andrzej.kardas@kardasa.pl 2009-01-07 18:48:06 --- (In reply to comment #13)
The bug is still present in 1.1.10.
In Version 1.1.12 bug is still present. PCM is being muted when lunching and closing games with OSS sound driver.
http://bugs.winehq.org/show_bug.cgi?id=15710
Martin Tournoij carpetsmoker@xs4all.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |carpetsmoker@xs4all.nl
--- Comment #15 from Martin Tournoij carpetsmoker@xs4all.nl 2009-01-10 18:14:07 --- Same problem on FreeBSD, pcm gets set to 0 with just about any application I tried (Including, but not limited to, Broken sword 2.5, Icewind Dale 2, Notrium). Setting `Driver acceleration' to `emulation' solved the problem, which seems to be the opposite of what other people did to fix it :-/
Some information about my system:
[~]% uname -a FreeBSD thinkpad.rwxrwxrwx.net 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Fri Jan 9 11:01:28 UTC 2009 carpetsmoker@thinkpad.rwxrwxrwx.net:/usr/obj/usr/src/sys/THINKPAD i386
[~]% pkg_info | grep wine wine-1.1.11_1,1 Microsoft Windows compatibility layer for Unix-like systems
[~]% dmesg | grep pcm pcm0: <HDA Analog Devices AD1984 PCM #0 Analog> at cad 0 nid 1 on hdac0 pcm1: <HDA Analog Devices AD1984 PCM #1 Digital> at cad 0 nid 1 on hdac0
(snd_hda driver)
http://bugs.winehq.org/show_bug.cgi?id=15710
Simon König simjoko@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |simjoko@gmail.com
--- Comment #16 from Simon König simjoko@gmail.com 2009-01-20 08:17:03 --- Same problem on: FreeBSD xxx 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
wine-1.1.13,1
pcm0: <Intel 82801H High Definition Audio Controller> mem 0xfdff4000-0xfdff7fff irq 22 at device 27.0 on pci0 pcm0: <HDA Codec: Realtek ALC882> pcm0: <HDA Driver Revision: 20080420_0052>
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #17 from idn aidenn@gmail.com 2009-02-03 21:39:26 --- I've noticed that running wine via aoss wine app.exe fixes the problem.
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #18 from Simon König simjoko@gmail.com 2009-02-04 03:47:37 --- (In reply to comment #17)
I've noticed that running wine via aoss wine app.exe fixes the problem.
Which is not a fix but a workaround and not a choice on BSD.
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #19 from Andrzej Kardaś andrzej.kardas@kardasa.pl 2009-03-02 06:07:49 ---
Which is not a fix but a workaround and not a choice on BSD.
Problem still exists with wine version 1.1.16, Workaround works (running game with aoss wine prevent PCM being set to 0) but it lowers sound quality so not real solution at least for me.
http://bugs.winehq.org/show_bug.cgi?id=15710
Tijl Coosemans tijl@ulyssis.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tijl@ulyssis.org
--- Comment #20 from Tijl Coosemans tijl@ulyssis.org 2009-03-28 08:40:39 --- Could somebody attach a +dsound,+mixer log.
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #21 from Wolfram Kresse wine@wkresse.de 2009-03-28 08:54:34 --- Created an attachment (id=20163) --> (http://bugs.winehq.org/attachment.cgi?id=20163) log with WINEDEBUG=warn+dsound,warn+mixer from "wine Arindal.exe"
There's not much info in the log. The PCM reset happend approx. 0.5 seconds after the output of "warn:mixer:OSS_MixerInit couldn't open /dev/mixer5", and approx. 0.5 seconds before the output of "fixme:win:EnumDisplayDevicesW ((null),0,0x33e2b0,0x00000000), stub!", so it does not appear to be related to the messages.
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #22 from Tijl Coosemans tijl@ulyssis.org 2009-03-28 09:45:41 --- WINEDEBUG=+dsound,+mixer should print more messages.
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #23 from Wolfram Kresse wine@wkresse.de 2009-03-28 09:57:10 --- Created an attachment (id=20164) --> (http://bugs.winehq.org/attachment.cgi?id=20164) log with WINEDEBUG=+dsound,+mixer from "wine Arindal.exe"
ah, sorry
http://bugs.winehq.org/show_bug.cgi?id=15710
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |smdias65@lycos.com
--- Comment #24 from Vitaliy Margolen vitaliy@kievinfo.com 2009-04-28 22:30:18 --- *** Bug 18268 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15710
Jamie Jones jamie@bishopston.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jamie@bishopston.net
--- Comment #25 from Jamie Jones jamie@bishopston.net 2009-05-09 10:39:00 --- (In reply to comment #18)
Which is not a fix but a workaround and not a choice on BSD.
Not a fix, but a workaround on FreeBSD, that doesn't require you to switch to emulated sound
1) Create a new group "nomixer" by editting /etc/group
e.g. nomixer:*:2000:
2) Add the following 2 lines to /etc/devfs.conf:
own mixer root:nomixer perm mixer 0606
3) Modify the wine binary as such:
chgrp nomixer /usr/local/bin/wine chmod g+s /usr/local/bin/wine
This basically means that wine doesn't have access to /dev/mixer so can't alter anything.
You as a user still retain access, and also, any wine apps that have a volume control STILL work, because that volume is not changed using /dev/mixer
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #26 from Roman Rybalko winehq@romanr.info 2009-05-15 05:59:01 --- Created an attachment (id=21110) --> (http://bugs.winehq.org/attachment.cgi?id=21110) This patch works for me
(In reply to comment #12)
Maarten, the bug seems to be caused by lines 172/173 of dlls/dsound/primary.c. Removing these two lines from the current git version and leaving the rest untouched solves the problem for me.
for me too FBSD-7.1R, GENERIC
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #27 from Andrzej Kardaś andrzej.kardas@kardasa.pl 2009-05-19 15:10:30 ---
(In reply to comment #12)
Removing these two lines from the current git version and leaving the rest untouched solves the problem for me.
I can confirm doing this and recompiling wine solves the problem on my Gentoo Linux.
http://bugs.winehq.org/show_bug.cgi?id=15710
Stefano Guidoni s.guidoni@tin.it changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |s.guidoni@tin.it
--- Comment #28 from Stefano Guidoni s.guidoni@tin.it 2009-06-25 09:44:28 --- This same bug affects also the freeware game AGwaK2 (http://appdb.winehq.org/objectManager.php?sClass=version&iId=17005). However the fix from comment #12 does not entirely solve the issue in this case.
WineOSS+Hardware Acceleration=Emulation: it all works well.
WineOSS+Hardware Acceleration=Full: PCM output is reset to zero quite often (actually whenever entering a new level, the menu or an animated sequence). However the audio works, one has just to manually set the volume with alsamixer (or kmix etc.), every time it is reset.
WineALSA: there isn't audio output and there aren't errors.
WineOSS+Hardware Acceleration=Full+deleting the two lines in primary.c: PCM volume is no more reset to zero, however there isn't audio output (like with winealsa) and there aren't errors.
Notably the sound does not works when the two lines are deleted, while it works when primary.c is not modified, although the pcm channel is reset to zero in the latter case.
http://bugs.winehq.org/show_bug.cgi?id=15710
Kris Moore kris@pcbsd.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kris@pcbsd.org
--- Comment #29 from Kris Moore kris@pcbsd.org 2009-10-26 13:14:26 --- Has there been any movement on this? This is a rather major annoying bug with wine for all of BSD right now, and it seems to be a rather simple fix right?
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #30 from Stefano Guidoni s.guidoni@tin.it 2010-01-11 18:38:16 --- Still present in wine 1.1.35 (on Slackware 13.0).
http://bugs.winehq.org/show_bug.cgi?id=15710
sdepablos@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sdepablos@gmail.com
--- Comment #31 from sdepablos@gmail.com 2010-03-13 14:59:51 --- Still present in Wine 1.1.40 (Ubuntu 9.10). Changing from WineOSS + Hardware Acceleration= Full to WineOSS + Hardware Acceleration = Emulation it all works well.
http://bugs.winehq.org/show_bug.cgi?id=15710
Raymond superquad.vortex2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |superquad.vortex2@gmail.com
--- Comment #32 from Raymond superquad.vortex2@gmail.com 2010-07-02 03:41:30 --- (In reply to comment #28)
This same bug affects also the freeware game AGwaK2 (http://appdb.winehq.org/objectManager.php?sClass=version&iId=17005). However the fix from comment #12 does not entirely solve the issue in this case.
WineOSS+Hardware Acceleration=Emulation: it all works well.
WineOSS+Hardware Acceleration=Full: PCM output is reset to zero quite often (actually whenever entering a new level, the menu or an animated sequence). However the audio works, one has just to manually set the volume with alsamixer (or kmix etc.), every time it is reset.
does any OSSV4 sound card support hardware mixing ?
Hardware acceleration = FULL
Enables hardware acceleration of DirectSound secondary buffers and enables vendor-specific property-set extensions.
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #33 from Raymond superquad.vortex2@gmail.com 2010-07-02 03:53:14 --- (In reply to comment #1)
DirectSound shouldn't touch the master volume at all, this will cause the volume control not to work on the primary buffer, but it would fix the problem.
Does removing the 2 lines with waveOutSetVolume in them in dlls/dsound/primary.c fix this issue?
for those hardware mixing sound card , each voice has a hardware volume control provided by DSP,
for those non-hardware mixing sound card , the hardware volume control provided by AC97 codec or DAC
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #34 from Raymond superquad.vortex2@gmail.com 2010-12-14 00:29:29 CST --- (In reply to comment #31)
Still present in Wine 1.1.40 (Ubuntu 9.10). Changing from WineOSS + Hardware Acceleration= Full to WineOSS + Hardware Acceleration = Emulation it all works well.
please post the output of
cat /proc/asound/card0/oss_mixer
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #35 from Raymond superquad.vortex2@gmail.com 2010-12-14 18:55:04 CST ---
Same problem on FreeBSD, pcm gets set to 0 with just about any application I tried (Including, but not limited to, Broken sword 2.5, Icewind Dale 2, Notrium).
ALSA 's OSS emulation which reported OSS version 3.8
Refer to OSS 3.0 Sound Documenation
The volume scale is 0 to 100 with out any mute switch since 0 is supposed to be off
But wineoss.drv implement a volume control and mute switch if you run
WINETEST_INTERACTIVE=1 WINEDEBUG=+mixer wine winmm_test mixer
THe problem seem to related to unmute which change the volume to 1 since there is no mute switch but 1 in 100 scale is round down to 0 since most volume control has only 16~32 steps
http://bugs.winehq.org/show_bug.cgi?id=15710
Eric eric.c.dahl@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.c.dahl@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=15710
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |a4a9d50dd9651a8026044613ee5 | |37f020bd1aee6
http://bugs.winehq.org/show_bug.cgi?id=15710
Athrun samurai_no_densetsu@yahoo.es changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |samurai_no_densetsu@yahoo.e | |s
--- Comment #36 from Athrun samurai_no_densetsu@yahoo.es 2011-09-05 09:11:06 CDT --- Still an issue?
http://bugs.winehq.org/show_bug.cgi?id=15710
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mstefani@redhat.com
--- Comment #37 from Michael Stefaniuc mstefani@redhat.com 2013-02-19 18:09:38 CST --- The sound back end in Wine changed considerably since this bug was reported. Wine has taken the path of "modern" Windows and there is no hardware acceleration anymore.
Can you please retest and report back?
http://bugs.winehq.org/show_bug.cgi?id=15710
Don Koch aardvark@krl.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|aardvark@krl.com |
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #38 from Austin English austinenglish@gmail.com 2013-07-01 17:45:16 CDT --- WINETEST_INTERACTIVE=1 WINEDEBUG=mixer make mixer.ok 2>&1 | tee ~/mix.txt ../../../tools/runtest -q -P wine -M winmm.dll -T ../../.. -p winmm_test.exe.so mixer.c && touch mixer.ok mixer.c:249: Test failed: Couldn't change value from 3407168 to 3406976, returned 258
FreeBSD pcbsd-7162 9.1-RELEASE FreeBSD 9.1-RELEASE #2: Tue Nov 27 03:06:52 UTC 2012 root@darkstar:/usr/obj/pcbsd-build90/fbsd-source/9.1/sys/GENERIC i386
PC-BSD 9.1 / wine-1.6-rc4
http://bugs.winehq.org/show_bug.cgi?id=15710
--- Comment #39 from Austin English austinenglish@gmail.com 2013-07-01 17:47:17 CDT --- Created attachment 45069 --> http://bugs.winehq.org/attachment.cgi?id=45069 WINETEST_INTERACTIVE=1 WINEDEBUG=+tid,+mmdevapi,+winmm,+driver,+midi,+dsound,+dsound3d,+dmusic,+mci,+oss,mixer make mixer.ok
http://bugs.winehq.org/show_bug.cgi?id=15710
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download CC| |austinenglish@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=15710
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #40 from Michael Stefaniuc mstefani@redhat.com 2013-07-01 18:27:37 CDT --- Seems the "volume is set to 0" issue is fixed: <austin987> puk, so I've got youtube up playing a long video <austin987> rm *ok ; make mixer.ok # sound works <austin987> rm *ok ; WINETEST_INTERACTIVE=1 make mixer.ok # sound works <austin987> rm *ok ; WINETEST_INTERACTIVE=1 WINEDEBUG=winmm make mixer.ok # sound works <austin987> youtube was with native chromium <puk> cool <puk> so I assume it is fixed then
http://bugs.winehq.org/show_bug.cgi?id=15710
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #41 from Alexandre Julliard julliard@winehq.org 2013-07-12 13:47:43 CDT --- Closing bugs fixed in 1.6-rc5.