Clear mixing structures when we stop mixing for node

This commit is contained in:
Clement 2018-11-28 14:04:14 -08:00
parent 0de011dd71
commit c29f6346d8

View file

@ -337,6 +337,13 @@ void AudioMixerClientData::removeAgentAvatarAudioStream() {
if (it != _audioStreams.end()) {
_audioStreams.erase(it);
// Clear mixing structures so that they get recreated with up to date
// data if the stream comes back
setHasReceivedFirstMix(false);
_streams.skipped.clear();
_streams.inactive.clear();
_streams.active.clear();
}
}