[soundmgr_openal] Pause/Resume Sound.

The following changes fixes a case for me where I hear the sound change levels up and down for each pause un-pause cycle.
Patch provided by daniel.c.wickstrom@gmail.com.
This commit is contained in:
Scott Giese
2019-07-30 16:36:49 +01:00
committed by James Turner
parent 10ab8b830a
commit b155f2e40f
+1 -1
View File
@@ -340,7 +340,7 @@ void SGSoundMgr::suspend()
for ( auto current = d->_sample_groups.begin(); for ( auto current = d->_sample_groups.begin();
current != d->_sample_groups.end(); ++current ) { current != d->_sample_groups.end(); ++current ) {
SGSampleGroup *sgrp = current->second; SGSampleGroup *sgrp = current->second;
sgrp->stop(); sgrp->suspend();
} }
_active = false; _active = false;
} }