stream now restores speaker after long freezes

This commit is contained in:
MihailRis
2024-03-03 14:49:47 +03:00
parent 011bdd8397
commit cd657a1234
4 changed files with 29 additions and 4 deletions
+2 -1
View File
@@ -294,7 +294,8 @@ void audio::update(double delta) {
}
for (auto it = speakers.begin(); it != speakers.end();) {
if (it->second->isStopped()) {
if (it->second->isStoppedManually()) {
streams.erase(it->first);
it = speakers.erase(it);
} else {
it++;