[Openal] alSourceQueueBuffers Report Error

steve steve at astrocorp.com.tw
Fri Oct 27 00:52:37 PDT 2006


Thank you, Garin
 
I have another error exception for alSourceUnqueueBuffers ().

OpenAL reports "Invalid Value" and My program crashs.

What I am trying to do is to unqueue the un-playing buffers.
I would like to continue playing the current short voice (one buffer), and
remove all queued buffer and queue a new buffer.

Thank you.

Steve

====================================
  void Broadcaster::EmptyVoices ()
  {
    int iQueued;
    alGetSourcei (Id (), AL_BUFFERS_QUEUED, &iQueued);
    CHECK_AL_ERROR ();

    while (iQueued--)
    {
      ALuint uBufId;
--->      alSourceUnqueueBuffers (Id (), 1, &uBufId);
      CHECK_AL_ERROR ();
    }
  }








More information about the Openal mailing list