[Bug 14812] dsound bug causes games to crash

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Aug 11 07:14:21 CDT 2008


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





--- Comment #5 from Ben Trusty <ben.trusty at gmail.com>  2008-08-11 07:14:21 ---
did code change suggested by Maarten Lankhorst,

>
Change
snd_pcm_uframes_t used = This->mmap_buflen_frames -
snd_pcm_avail_update(This->pcm);
To
        snd_pcm_sframes_t used = This->mmap_buflen_frames -
snd_pcm_avail_update(This->pcm);

        if (used < 0)
        {
            snd_pcm_forward(This->pcm, -used);
            used = 0;
        }
>

complied, ran

it worked, though some sound clips got truncated and glitched between two sound
tracks within game play. will have to test further tonight after work.

but the game never dropped sound completely.
and never locked up because of it. i was able to play C&C for 30 minutes
without losing sound and then the rest of the game. just need to figure out the
overlap / lack of simultaneous streams so that the sound does not sound
glitchy.

thanks 


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