content/hifi-content/robin/dev/domains/help/unmuteZone/unmuteZoneClient.js
2022-02-14 02:04:11 +01:00

35 lines
849 B
JavaScript

//
// unmuteZoneClient.js
//
// Created by Robin Wilson on 2019-04-08
// Copyright 2019 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
(function() {
var DEBUG = false;
function UnmuteZoneClient () {
// blank
}
var previousMuteSetting;
UnmuteZoneClient.prototype = {
preload: function(id) {
// blank
},
enterEntity: function () {
previousMuteSetting = Audio.muted;
Audio.muted = false;
},
leaveEntity: function () {
Audio.muted = previousMuteSetting;
},
unload: function() {
// blank
}
};
return new UnmuteZoneClient();
});