http://bugs.winehq.org/show_bug.cgi?id=23851
Summary: Warhammer: Chaos Gate No sound outside of cutscenes Product: Wine Version: 1.2 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-dsound AssignedTo: wine-bugs@winehq.org ReportedBy: curran.michaelp@gmail.com
Created an attachment (id=29938) --> (http://bugs.winehq.org/attachment.cgi?id=29938) winedebug log with settings warn+alsa,warn+wave,warn+dsound
Sound plays normally for the opening cinematic and then goes silent for main menu (Sounds should play on mouse over events, and I believe there is background music on Windows). Sound returns during a second cinematic and is silent again afterwards.
I've attached a log generated with WINEDEBUG=warn+alsa,warn+wave,warn+dsound.
It looks like the sound is failing when the application attempt to override the existing Primary buffer, but we don't fully support this currently. Per the following lines from the log.
warn:dsound:DirectSoundDevice_SetCooperativeLevel level=DSSCL_PRIORITY not fully supported warn:dsound:DirectSoundDevice_CreateSoundBuffer Primary Buffer already created
http://bugs.winehq.org/show_bug.cgi?id=23851
Raymond superquad.vortex2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |superquad.vortex2@gmail.com
--- Comment #1 from Raymond superquad.vortex2@gmail.com 2010-07-31 21:34:19 --- which alsa "default" device are you using ?
you better use
WINEDEBUG=+dsound,+dsalsa,+alsa
http://bugs.winehq.org/show_bug.cgi?id=23851
--- Comment #2 from Michael Curran curran.michaelp@gmail.com 2010-08-01 07:50:10 --- Created an attachment (id=29961) --> (http://bugs.winehq.org/attachment.cgi?id=29961) winedebug log with settings +alsa,+dsalsa,+dsound
Attached log as requested.
I'm not sure what you mean by "default" alsa device. I have pulsaudio install, but turned off (killed with autospawn turned off) during this test.
http://bugs.winehq.org/show_bug.cgi?id=23851
--- Comment #3 from Raymond superquad.vortex2@gmail.com 2010-08-02 01:31:23 --- fixme:mixer:ALSA_MixerInit No master control found on MPU-401 UART, disabling mixer fixme:mixer:ALSA_MixerInit No master control found on Logitech USB Headset, disabling mixer fixme:mixer:ALSA_MixerInit No master control found on QuickCam Pro 9000, disabling mixer err:alsa:ALSA_CheckSetVolume Could not find 'PCM Playback Volume' element trace:dsound:DirectSoundDevice_Create (0x32f164) trace:dsound:DSOUND_ReopenDevice (0x1a6010, 0) trace:dsalsa:wodDsCreate driver created trace:dsalsa:IDsDriverImpl_GetDriverDesc (0x1a5df0,0x1a6028) trace:dsalsa:IDsDriverImpl_Open Success trace:dsalsa:IDsDriverImpl_GetCaps (0x1a5df0,0x1a6254) trace:dsound:DSOUND_PrimaryCreate (0x1a6010) trace:dsound:DSOUND_PrimaryOpen (0x1a6010) trace:dsalsa:IDsDriverImpl_CreateSoundBuffer (0x1a5df0,0x1a5c88,1,0) warn:dsalsa:SetFormat Could not set sound rate to 44100, but instead to 48000 trace:dsalsa:DSDB_CreateMMAP mmap'd buffer is an ALSA type 14 buffer
type 14 is "plug" plugin , this seem that you are not using pulseaudio
How about output of "aplay -v /usr/share/sounds/*.wav" ?
err = snd_pcm_hw_params_set_rate_near(pcm, hw_params, &rate, NULL); if (err < 0) { rate = pwfx->nSamplesPerSec; WARN("Could not set rate\n"); goto err; }
if (!ALSA_NearMatch(rate, pwfx->nSamplesPerSec)) { WARN("Could not set sound rate to %d, but instead to %d\n", pwfx->nSamplesPerSec, rate); pwfx->nSamplesPerSec = rate; pwfx->nAvgBytesPerSec = rate * pwfx->nBlockAlign; }
is it correct for winealsa.drv to use DSCAPS_CONTINUOUSRATE if the alsa device only support 48000Hz ( seem does not support 44100Hz and 22050Hz DSOUND_PrimarySetFormat )
warn:dsound:DirectSoundDevice_SetCooperativeLevel level=DSSCL_PRIORITY not fully supported trace:dsound:IDirectSound_IDirectSound_CreateSoundBuffer (0x1a6d20,0x32f138,0x32f134,(nil)) trace:dsound:DirectSoundDevice_CreateSoundBuffer (0x1a6010,0x32f138,0x32f134,(nil)) trace:dsound:DirectSoundDevice_CreateSoundBuffer (structsize=20) trace:dsound:DirectSoundDevice_CreateSoundBuffer (flags=0x00000001: trace:dsound:_dump_DSBCAPS DSBCAPS_PRIMARYBUFFER ) trace:dsound:DirectSoundDevice_CreateSoundBuffer (bufferbytes=0) trace:dsound:DirectSoundDevice_CreateSoundBuffer (lpwfxFormat=(nil)) warn:dsound:DirectSoundDevice_CreateSoundBuffer Primary Buffer already created trace:dsound:PrimaryBufferImpl_AddRef (0x1a6d58) ref was 1 trace:dsound:PrimaryBufferImpl_SetFormat (0x1a6d58,0x32f18c) trace:dsound:DSOUND_PrimarySetFormat (0x1a6010,0x32f18c) trace:dsound:DSOUND_PrimarySetFormat (formattag=0x0001,chans=1,samplerate=22050,bytespersec=44100,blockalign=2,bitspersamp=16,cbSize=33354) trace:dsalsa:IDsDriverBufferImpl_SetFormat (0x1a5e08, 0x1a6d38) warn:dsalsa:SetFormat Could not set sound rate to 22050, but instead to 48000 trace:dsalsa:DSDB_CreateMMAP mmap'd buffer is an ALSA type 14 buffer
There are many warning messages
warn:dsalsa:IDsDriverBufferImpl_Lock mmap_pos (7008) != writepos (1888) not locking data!
http://bugs.winehq.org/show_bug.cgi?id=23851
--- Comment #4 from Michael Curran curran.michaelp@gmail.com 2010-08-02 10:26:19 --- Created an attachment (id=29977) --> (http://bugs.winehq.org/attachment.cgi?id=29977) Aplay log with ogg files
No .wav files in the directory so I ran with *.ogg. There were .wav files in a subdirectory, so I have attached a log for that as well.
I tried adjusting the default sample rate up to 48000, no effect. I can run under pulseaudio instead, but still no sound and in general I have found that pulseaudio and wine tend to do poorly together.
http://bugs.winehq.org/show_bug.cgi?id=23851
--- Comment #5 from Michael Curran curran.michaelp@gmail.com 2010-08-02 10:26:45 --- Created an attachment (id=29978) --> (http://bugs.winehq.org/attachment.cgi?id=29978) Aplay log with wav files
http://bugs.winehq.org/show_bug.cgi?id=23851
--- Comment #6 from Raymond superquad.vortex2@gmail.com 2010-08-02 20:41:44 --- (In reply to comment #5)
Created an attachment (id=29978)
--> (http://bugs.winehq.org/attachment.cgi?id=29978) [details]
Aplay log with wav files
#if SND_LIB_VERSION >= 0x010009 snd_pcm_hw_params_set_rate_resample(pcm, hw_params, 0); #endif
The winealsa.drv display resampling of default device "plug:dmix" , so the "default" device only support 48000Hz and it is incorrect to return DSCAPS_CONTINUOUSRATE
trace:dsound:DirectSoundDevice_GetCaps (flags=0x00000f5f: trace:dsound:_dump_DSCAPS DSCAPS_PRIMARYMONO DSCAPS_PRIMARYSTEREO DSCAPS_PRIMARY8BIT DSCAPS_PRIMARY16BIT DSCAPS_CONTINUOUSRATE DSCAPS_CERTIFIED DSCAPS_SECONDARYMONO DSCAPS_SECONDARYSTEREO DSCAPS_SECONDARY8BIT DSCAPS_SECONDARY16BIT )
DSCAPS_CONTINUOUSRATE The device supports all sample rates between the dwMinSecondarySampleRate and dwMaxSecondarySampleRate member values. Typically, this means that the actual output rate will be within +/- 10 hertz (Hz) of the requested frequency.
http://bugs.winehq.org/show_bug.cgi?id=23851
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adys.wh@gmail.com
--- Comment #7 from Jerome Leclanche adys.wh@gmail.com 2013-01-21 11:33:34 CST --- Any update?
https://bugs.winehq.org/show_bug.cgi?id=23851
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |ABANDONED
--- Comment #8 from Austin English austinenglish@gmail.com --- No reply in over 2 years, abandoned.
https://bugs.winehq.org/show_bug.cgi?id=23851
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Béla Gyebrószki gyebro69@gmail.com --- Closing all abandoned/duplicated/invalid bugs.
https://bugs.winehq.org/show_bug.cgi?id=23851
Adrian Lüthi adi.l@bluewin.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adi.l@bluewin.ch
--- Comment #10 from Adrian Lüthi adi.l@bluewin.ch --- the bug is still around in wine 1.7.47
are there some logs that would help in debugging?