mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 16:26:17 +02:00
fix audio-mixer muting for injectors
This commit is contained in:
parent
de5881818b
commit
f27367a0c1
1 changed files with 2 additions and 1 deletions
|
@ -774,7 +774,8 @@ void AudioMixer::run() {
|
|||
nodeData->checkBuffersBeforeFrameSend();
|
||||
|
||||
// if the stream should be muted, send mute packet
|
||||
if (shouldMute(nodeData->getAvatarAudioStream()->getQuietestFrameLoudness())) {
|
||||
if (nodeData->getAvatarAudioStream()
|
||||
&& shouldMute(nodeData->getAvatarAudioStream()->getQuietestFrameLoudness())) {
|
||||
static const int TIME_BETWEEN_MUTES = 5; // in secs
|
||||
if (usecTimestampNow() - nodeData->getAvatarAudioStream()->getLastMuted() >
|
||||
TIME_BETWEEN_MUTES * USECS_PER_SECOND) {
|
||||
|
|
Loading…
Reference in a new issue