stream now restores speaker after long freezes
This commit is contained in:
+2
-1
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user