[Bug 32312] New: SNES9x crashes when non-48kHz DirectSound audio output is selected

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Nov 27 16:46:28 CST 2012


http://bugs.winehq.org/show_bug.cgi?id=32312

             Bug #: 32312
           Summary: SNES9x crashes when non-48kHz DirectSound audio output
                    is selected
           Product: Wine
           Version: 1.5.18
          Platform: x86-64
               URL: http://files.ipherswipsite.com/snes9x/snes9x-1.53-win3
                    2.zip
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: directx-dsound
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: markk at clara.co.uk
    Classification: Unclassified
   Regression SHA1: 605cd62c7dc84ef86cbd260139c6875cd0ed8d60


Created attachment 42650
  --> http://bugs.winehq.org/attachment.cgi?id=42650
dsound-related crash backtrace

I'm testing with SNES9x 1.53, Wine 1.5.18, Lubuntu 11.10 x86-64, Nvidia driver
304.64.

I get a crash on changing the sound driver setting. To reproduce:
- Download and unzip the snes9x archive.
- Run snes9x.exe. You'll get a dialog saying "Unable to initialize XAudio2"
since Wine doesn't support that. Click OK.
- Select Sound->Settings..., change Sound Driver to Snes9x DirectSound and
click OK. The program crashes. Since it saved the DirectSound setting to
snes9x.conf, you get an immediate crash if you run snes9x.exe again without
deleting or editing snes9x.conf.

The crash seems to be related to the sample rate. The default playback rate is
32 KHz. For me, if I change Sound Driver to DirectSound and Playback Rate to 48
KHz, there is no crash. I can load a SNES ROM and play it with (albeit crackly)
sound. The crash happens when selecting any other playback rate.

(There is no graphical output in the default Direct3D mode which I'll hopefully
file another bug for. You can select Video->Display Configuration... and change
Output Method to DirectDraw to work around that.)

This looks like a regression. A regression test gave this:

605cd62c7dc84ef86cbd260139c6875cd0ed8d60 is the first bad commit
commit 605cd62c7dc84ef86cbd260139c6875cd0ed8d60
Author: Maarten Lankhorst <maarten.lankhorst at canonical.com>
Date:   Fri Nov 16 20:35:51 2012 +0100

    dsound: Create a primary_pwfx separately from pwfx.

:040000 040000 d3b302ce4433475153fde9b9e86f656e64487ea8
d33035cd0a9fc793a629ae425621ee6daff67d63 M    dlls

-- 
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.



More information about the wine-bugs mailing list