Пример #1
0
    void Sound::AcquireSource(AL::Source& source) {
        this->source = &source;

        source.SetLooping(false);

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