Fixed a shutdown crash in LLAudioEngine::assetCallback, and fixed behavior when soundsource re-issues a sound whilst a sound is currently playing for same source. (LLAudioChannel[Impl]::play now re-starts sound if already playing)
This commit is contained in:
@@ -199,11 +199,13 @@ void LLAudioChannelOpenAL::play()
|
||||
return;
|
||||
}
|
||||
|
||||
if(!isPlaying())
|
||||
if(isPlaying())
|
||||
{
|
||||
alSourcePlay(mALSource);
|
||||
getSource()->setPlayedOnce(true);
|
||||
alSourceStop(mALSource);
|
||||
}
|
||||
|
||||
alSourcePlay(mALSource);
|
||||
getSource()->setPlayedOnce(true);
|
||||
}
|
||||
|
||||
void LLAudioChannelOpenAL::playSynced(LLAudioChannel *channelp)
|
||||
|
||||
Reference in New Issue
Block a user