mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-08 19:00:57 +00:00
HPL1: fix bug in sound channel class
This commit is contained in:
parent
29b490a6d9
commit
0a4d20e13e
@ -135,12 +135,13 @@ void cOpenALSoundChannel::SetVolume(float volume) {
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void cOpenALSoundChannel::SetLooping(bool abLoop) {
|
||||
mbLooping = abLoop;
|
||||
if (abLoop)
|
||||
mixer->loopChannel(_handle);
|
||||
else if (_playing)
|
||||
void cOpenALSoundChannel::SetLooping(bool loop) {
|
||||
Hpl1::logInfo(Hpl1::kDebugAudio, "%slooping audio from source %s\n", loop ? "" : "un", mpData->GetName().c_str());
|
||||
mbLooping = loop;
|
||||
if (!_playing)
|
||||
restart();
|
||||
if (loop)
|
||||
mixer->loopChannel(_handle);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user