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 () => {
|
onViewPush: async () => {
|
||||||
try {
|
try {
|
||||||
soundSrc = await sndLibrary.loadSource('misc:youare');
|
soundSrc = await sndLibrary.loadSource('misc:youare');
|
||||||
soundSrc.setMuted(true);
|
soundSrc.muted = true;
|
||||||
soundSrc.setLoop(true, 0.21, 5);
|
soundSrc.setLoop(true, 0.21, 5);
|
||||||
soundSrc.play();
|
soundSrc.play();
|
||||||
} catch(ex) {
|
} catch(ex) {
|
||||||
|
@ -34,11 +34,11 @@ const MamiYouAreAnIdiot = function(sndLibrary, views) {
|
||||||
},
|
},
|
||||||
onViewForeground: async () => {
|
onViewForeground: async () => {
|
||||||
if(soundSrc !== undefined)
|
if(soundSrc !== undefined)
|
||||||
soundSrc.setMuted(false);
|
soundSrc.muted = false;
|
||||||
},
|
},
|
||||||
onViewBackground: async () => {
|
onViewBackground: async () => {
|
||||||
if(soundSrc !== undefined)
|
if(soundSrc !== undefined)
|
||||||
soundSrc.setMuted(true);
|
soundSrc.muted = true;
|
||||||
},
|
},
|
||||||
onViewPop: async () => {
|
onViewPop: async () => {
|
||||||
if(soundSrc !== undefined)
|
if(soundSrc !== undefined)
|
||||||
|
|
Loading…
Reference in a new issue