diff --git a/examples/controllers/hydra/airGuitar.js b/examples/controllers/hydra/airGuitar.js index 6f5a259ecd..8f16bc0e23 100644 --- a/examples/controllers/hydra/airGuitar.js +++ b/examples/controllers/hydra/airGuitar.js @@ -85,7 +85,7 @@ function checkHands(deltaTime) { var chord = Controller.getTriggerValue(chordHand); if (volume > 1.0) volume = 1.0; - if ((chord > 0.1) && soundPlaying.isPlaying()) { + if ((chord > 0.1) && soundPlaying.isPlaying) { // If chord finger trigger pulled, stop current chord print("stopped sound"); soundPlaying.stop(); @@ -132,7 +132,7 @@ function checkHands(deltaTime) { } function playChord(position, volume) { - if (soundPlaying.isPlaying()) { + if (soundPlaying.isPlaying) { print("stopped sound"); soundPlaying.stop(); } diff --git a/examples/lobby.js b/examples/lobby.js index 9c253ffaf7..ded287cc10 100644 --- a/examples/lobby.js +++ b/examples/lobby.js @@ -354,7 +354,7 @@ function update(deltaTime) { Overlays.editOverlay(descriptionText, { position: textOverlayPosition() }); // if the reticle is up then we may need to play the next muzak - if (currentMuzakInjector && !currentMuzakInjector.isPlaying()) { + if (currentMuzakInjector && !currentMuzakInjector.isPlaying) { playNextMuzak(); } }