use isPlaying property instead of getter

This commit is contained in:
Stephen Birarda 2015-02-11 16:21:45 -08:00
parent f9174366dc
commit 05b7cd819e
2 changed files with 3 additions and 3 deletions

View file

@ -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();
}

View file

@ -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();
}
}