Пример #1
0
	bool Emitter::playSoundDispatched(Sound::Ptr& buffer)
	{
		if (!pReady && !prepareDispatched())
			return false;

		if (!attachBufferDispatched(buffer))
			return false;

		return playSoundDispatched();
	}
Пример #2
0
	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);
	}