From 6f7fe0611be03d269155904a81b33a185e440681 Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Thu, 27 Jul 2017 17:41:27 +0200 Subject: [PATCH] Fix broken audio when attempting to stop or pause multiple sources, when not all of them were playing --HG-- branch : minor --- src/modules/audio/openal/Source.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/audio/openal/Source.cpp b/src/modules/audio/openal/Source.cpp index 0bb68c287..6240b0942 100644 --- a/src/modules/audio/openal/Source.cpp +++ b/src/modules/audio/openal/Source.cpp @@ -1041,7 +1041,7 @@ void Source::stop(const std::vector &sources) sourceIds.push_back(source->source); } - alSourceStopv((ALsizei) sources.size(), &sourceIds[0]); + alSourceStopv((ALsizei) sourceIds.size(), &sourceIds[0]); for (auto &_source : sources) { @@ -1068,7 +1068,7 @@ void Source::pause(const std::vector &sources) sourceIds.push_back(source->source); } - alSourcePausev((ALsizei) sources.size(), &sourceIds[0]); + alSourcePausev((ALsizei) sourceIds.size(), &sourceIds[0]); } std::vector Source::pause(Pool *pool)