mirror of
https://github.com/love2d/love.git
synced 2026-08-17 02:58:31 +02:00
Fix broken audio when attempting to stop or pause multiple sources, when not all of them were playing
--HG-- branch : minor
This commit is contained in:
@@ -1041,7 +1041,7 @@ void Source::stop(const std::vector<love::audio::Source*> &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<love::audio::Source*> &sources)
|
||||
sourceIds.push_back(source->source);
|
||||
}
|
||||
|
||||
alSourcePausev((ALsizei) sources.size(), &sourceIds[0]);
|
||||
alSourcePausev((ALsizei) sourceIds.size(), &sourceIds[0]);
|
||||
}
|
||||
|
||||
std::vector<love::audio::Source*> Source::pause(Pool *pool)
|
||||
|
||||
Reference in New Issue
Block a user