void Sound::AcquireSource(AL::Source& source) { this->source = &source; source.SetLooping(false); SetupSource(source); emitter->SetupSound(*this); }
void SoundSource::Play(Int fadeInTime) { SetupSource(fadeInTime); if (mOpenALSourceID) { alSourcePlay(mOpenALSourceID); mIsStopped = false; mIsPaused = false; mIsPlaying = true; } }
void SoundStream::Play(Int fadeInTime) { SetupSource(fadeInTime); if (mOpenALSourceID) { RequeueSavedBuffers(); alSourcePlay(mOpenALSourceID); mIsStopped = false; mIsPaused = false; mIsPlaying = true; } }