Exemple #1
0
    void Sound::AcquireSource(AL::Source& source) {
        this->source = &source;

        source.SetLooping(false);

        SetupSource(source);
        emitter->SetupSound(*this);
    }
Exemple #2
0
	void SoundSource::Play(Int fadeInTime) {
		SetupSource(fadeInTime);
		if (mOpenALSourceID) {
			alSourcePlay(mOpenALSourceID);
			mIsStopped = false;
			mIsPaused = false;
			mIsPlaying = true;
		}
	}
Exemple #3
0
	void SoundStream::Play(Int fadeInTime) {
		SetupSource(fadeInTime);
		if (mOpenALSourceID) {
			RequeueSavedBuffers();
			alSourcePlay(mOpenALSourceID);
			mIsStopped = false;
			mIsPaused = false;
			mIsPlaying = true;
		}
	}