Skip to content

Commit 83fb8cb

Browse files
author
Andrew Start
committed
Replaced soft tabs with hard tabs in AS file.
1 parent c7caa88 commit 83fb8cb

1 file changed

Lines changed: 26 additions & 26 deletions

File tree

dev/com/createjs/soundjs/FlashAudioPlugin.as

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
getDurationBySrc: handleGetDurationBySrc,
9292
setLoop: handleSetLoop,
9393

94-
setMasterVolume: handleSetMasterVolume,
94+
setMasterVolume: handleSetMasterVolume,
9595

9696
command: handleCommand
9797
};
@@ -106,7 +106,7 @@
106106
for (var n:String in map) {
107107
ExternalInterface.addCallback(n, map[n]);
108108
}
109-
// NOTE this is in an ENTER_FRAME to deal with a race issue in IE caused by caching
109+
// NOTE this is in an ENTER_FRAME to deal with a race issue in IE caused by caching
110110
this.addEventListener(Event.ENTER_FRAME, handleReady, false, 0, true);
111111
} catch (e:*) {
112112
handleError(e);
@@ -207,7 +207,7 @@
207207

208208
lookup[id] = wrapper;
209209
wrapper.addEventListener(Event.SOUND_COMPLETE, handleSoundFinished, false, 0, true);
210-
wrapper.addEventListener("loop", handleSoundLoop, false, 0, true);
210+
wrapper.addEventListener("loop", handleSoundLoop, false, 0, true);
211211
wrapper.addEventListener("interrupt", handleSoundInterrupt, false, 0, true);
212212
log("Play Sound", id, src, "o:",offset, "l:",loop, "v:",volume, "p:",pan, "sT:",startTime, "d:",duration, "mv:",masterVolume);
213213
return id;
@@ -222,14 +222,14 @@
222222
log("Complete", wrapper.id, "Remaining:", activeSoundCount);
223223
}
224224

225-
// An instance loop callback.
226-
protected function handleSoundLoop(event:Event):void {
227-
var wrapper:SoundWrapper = event.target as SoundWrapper;
228-
ExternalInterface.call(SOUND_CALLBACK, wrapper.id, "handleSoundLoop");
229-
log("Loop", wrapper.id, "Remaining:", wrapper.loop);
230-
}
225+
// An instance loop callback.
226+
protected function handleSoundLoop(event:Event):void {
227+
var wrapper:SoundWrapper = event.target as SoundWrapper;
228+
ExternalInterface.call(SOUND_CALLBACK, wrapper.id, "handleSoundLoop");
229+
log("Loop", wrapper.id, "Remaining:", wrapper.loop);
230+
}
231231

232-
protected function handleSoundInterrupt(id:String):void {
232+
protected function handleSoundInterrupt(id:String):void {
233233
var wrapper:SoundWrapper = getWrapper(id, true);
234234
if (wrapper != null) {
235235
log("Interrupted", wrapper.id);
@@ -582,17 +582,17 @@ class SoundWrapper extends EventDispatcher {
582582

583583
/** Get/Set the playhead position. */
584584
public function get position():Number {
585-
if (channel != null && !_paused) {
586-
return channel.position - this._startTime;
587-
}
588-
return offset;
589-
}
585+
if (channel != null && !_paused) {
586+
return channel.position - this._startTime;
587+
}
588+
return offset;
589+
}
590590

591591
/** @private */
592592
public function set position(value:Number):void {
593-
if (channel != null) {
594-
channel.stop();
595-
}
593+
if (channel != null) {
594+
channel.stop();
595+
}
596596
startSound(value);
597597
}
598598

@@ -652,17 +652,17 @@ class SoundWrapper extends EventDispatcher {
652652

653653
// Sound playback has completed.
654654
protected function handleSoundComplete(event:Event):void {
655-
offset = 0; // have to set this as it can be set by pause during playback
656-
if (loop != 0) {
655+
offset = 0; // have to set this as it can be set by pause during playback
656+
if (loop != 0) {
657657
//only decrement loop if it is not -1
658-
if(loop > 0) loop--; // NOTE this introduces a theoretical limit on loops = float max size x 2 - 1
658+
if(loop > 0) loop--; // NOTE this introduces a theoretical limit on loops = float max size x 2 - 1
659659

660-
startSound(offset);
660+
startSound(offset);
661661

662-
dispatchEvent(new Event("loop"));
663-
} else {
664-
dispatchEvent(event);
665-
}
662+
dispatchEvent(new Event("loop"));
663+
} else {
664+
dispatchEvent(event);
665+
}
666666
}
667667

668668
// An error has occurred.

0 commit comments

Comments
 (0)