void StreamSoundSource::stop() { m_playing = false; if(m_waitingFile) return; SoundSource::stop(); unqueueBuffers(); }
void Stream::clear() { int queued = queuedBuffers(); while (queued--) { ALuint buffer; unqueueBuffers(1, &buffer); } }
bool Stream::update() { int processed = processedBuffers(); bool active = true; while (processed--) { ALuint buffer; unqueueBuffers(1, &buffer); active = streamBuf(buffer); queueBuffers(1, &buffer); } return active; }
bool OpenALChannel::needsData() { if (!mDynamicBuffer[0] || mDynamicDone) return false; unqueueBuffers(); //LOG_SOUND("needsData (%d)", mDynamicStackSize); if (mDynamicStackSize) { mDynamicDone = true; return true; } return false; }
void StreamSoundSource::stop() { SoundSource::stop(); unqueueBuffers(); }