mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 23:03:12 +02:00
Reduce log spam
This commit is contained in:
parent
16dd6a2ce1
commit
a880ca1262
1 changed files with 9 additions and 7 deletions
|
@ -34,13 +34,15 @@ Script.update.connect(function () {
|
||||||
var avatars = AvatarList.getAvatarIdentifiers();
|
var avatars = AvatarList.getAvatarIdentifiers();
|
||||||
avatars.forEach(function (id) {
|
avatars.forEach(function (id) {
|
||||||
var avatar = AvatarList.getAvatar(id);
|
var avatar = AvatarList.getAvatar(id);
|
||||||
if ((MyAvatar.sessionUUID !== avatar.sessionUUID) && (avatar.displayName.indexOf(MICROPHONE_DISPLAY_NAME) !== 0)) {
|
if (MyAvatar.sessionUUID !== avatar.sessionUUID) {
|
||||||
othersLoudness += Math.round(avatar.audioLoudness);
|
if (avatar.displayName.indexOf(MICROPHONE_DISPLAY_NAME) !== 0) {
|
||||||
}
|
othersLoudness += Math.round(avatar.audioLoudness);
|
||||||
// Mute other microphone avatars to not feedback with muti-source environment
|
}
|
||||||
if (avatar.displayName.indexOf(MICROPHONE_DISPLAY_NAME) === 0) {
|
// Mute other microphone avatars to not feedback with muti-source environment
|
||||||
if (!Users.getPersonalMuteStatus(avatar.sessionUUID)) {
|
if (avatar.displayName.indexOf(MICROPHONE_DISPLAY_NAME) === 0) {
|
||||||
Users.personalMute(avatar.sessionUUID, true);
|
if (!Users.getPersonalMuteStatus(avatar.sessionUUID)) {
|
||||||
|
Users.personalMute(avatar.sessionUUID, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue