X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fsound%2Fsample_group.cxx;h=e2a2b2c73188894f89daeca7316ebd5946ff5910;hb=1f37095087fa7aa3d210ba134058b86c3bd6d69e;hp=1da290593793eefd597196a2ce05e45ed6fce245;hpb=47617d6c041cd806ae16944c2ace910c70981fe6;p=simgear.git diff --git a/simgear/sound/sample_group.cxx b/simgear/sound/sample_group.cxx index 1da29059..e2a2b2c7 100644 --- a/simgear/sound/sample_group.cxx +++ b/simgear/sound/sample_group.cxx @@ -275,7 +275,7 @@ SGSampleGroup::stop () void SGSampleGroup::suspend () { - if (_pause == false) { + if (_active && _pause == false) { _pause = true; sample_map_iterator sample_current = _samples.begin(); sample_map_iterator sample_end = _samples.end(); @@ -294,7 +294,7 @@ SGSampleGroup::suspend () void SGSampleGroup::resume () { - if (_pause == true) { + if (_active && _pause == true) { sample_map_iterator sample_current = _samples.begin(); sample_map_iterator sample_end = _samples.end(); for ( ; sample_current != sample_end; ++sample_current ) {