Skip to content

Commit

Permalink
ALAudioSink: Fix stop and flush of OpenAL source
Browse files Browse the repository at this point in the history
- stopImpl() shall always issue alSourceStop(..) if state is not STOPPED
- Remove 'flush' hint for dequeueBuffer(..), we perform proper flush in respective method, see below
- flush() needs to issue:
   - stopImpl() - which should already dequeue all buffers
   - Explicitly dequeue all buffers: via 'alSourcei(alSource[0], AL.AL_BUFFER, 0)'
   - Then dequeue manually processed buffers: dequeueBuffer( false /* wait */ );
   - And dequeue _all_ buffers: dequeueForceAll();
  • Loading branch information
sgothel committed Dec 11, 2013
1 parent 8a8ed73 commit d42b236
Showing 1 changed file with 125 additions and 115 deletions.
Loading

0 comments on commit d42b236

Please sign in to comment.