qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Questions on audio_atexit(), possibly bugs


From: malc
Subject: Re: [Qemu-devel] Questions on audio_atexit(), possibly bugs
Date: Thu, 1 Oct 2009 03:22:04 +0400 (MSD)

On Thu, 1 Oct 2009, Markus Armbruster wrote:

> malc <address@hidden> writes:
> 
> > On Wed, 30 Sep 2009, Markus Armbruster wrote:
> >
> >> Excuse my ignorance on all things audio, but I stumbled over something
> >> that could be wrong.
> >> 
> >> audio_vm_change_state_handler() stops voices when the VM stops, and
> >> starts them when it continues.
> >> 
> >> audio_atexit() unconditionally stops them.  When a stopped VM exits,
> >> this stops voices that are already stopped.
> >> 
> >> Does the audio driver contract allow stopping a stopped voice?  If yes,
> >> I figured starting a running voice is fine, too.  If no, we have a bug
> >> in audio_atexit().
> >
> > This should answer the question audio_atexit existed long before vm
> > change state handlers. Those were actually added to stop the host from
> > looping the same audio fragment over and over again (can/will happen
> > with DirectSound, mmapped OSS, fmod too if i'm not mistaken).
> 
> Just to make sure: Does this mean implementations of audio_pcm_ops need
> to cope with stopping a stopped voice?

Yes.

[..snip..]

-- 
mailto:address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]