mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
stream now restores speaker after long freezes
This commit is contained in:
parent
011bdd8397
commit
cd657a1234
4 changed files with 29 additions and 4 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue