bool Emitter::playSoundDispatched(Sound::Ptr& buffer) { if (!pReady && !prepareDispatched()) return false; if (!attachBufferDispatched(buffer)) return false; return playSoundDispatched(); }
bool Source::rewindDispatched(uint source) { for (uint i = 0; i < pBufferCount; ++i) Private::Media::OpenAL::UnqueueBufferFromSource(source); Private::Media::OpenAL::UnbindBufferFromSource(source); Private::Media::OpenAL::DestroyBuffers(pBufferCount, pIDs); if (pAStream) pAStream->rewind(); if (pVStream) pVStream->rewind(); return prepareDispatched(source); }