Fixed reference to setMuted not being updated.
This commit is contained in:
parent
afe5acd328
commit
cd16a5d1b5
1 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@ const MamiYouAreAnIdiot = function(sndLibrary, views) {
|
|||
onViewPush: async () => {
|
||||
try {
|
||||
soundSrc = await sndLibrary.loadSource('misc:youare');
|
||||
soundSrc.setMuted(true);
|
||||
soundSrc.muted = true;
|
||||
soundSrc.setLoop(true, 0.21, 5);
|
||||
soundSrc.play();
|
||||
} catch(ex) {
|
||||
|
@ -34,11 +34,11 @@ const MamiYouAreAnIdiot = function(sndLibrary, views) {
|
|||
},
|
||||
onViewForeground: async () => {
|
||||
if(soundSrc !== undefined)
|
||||
soundSrc.setMuted(false);
|
||||
soundSrc.muted = false;
|
||||
},
|
||||
onViewBackground: async () => {
|
||||
if(soundSrc !== undefined)
|
||||
soundSrc.setMuted(true);
|
||||
soundSrc.muted = true;
|
||||
},
|
||||
onViewPop: async () => {
|
||||
if(soundSrc !== undefined)
|
||||
|
|
Loading…
Reference in a new issue