Skip to content

Commit ae744ad

Browse files
committed
Missed a few changes to getter/setters
1 parent 6ef87e6 commit ae744ad

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/soundjs/flashaudio/FlashAudioSoundInstance.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ this.createjs = this.createjs || {};
145145
p._beginPlaying = function (playProps) {
146146
if (s._flash == null) { return false; }
147147

148-
this.setPosition(playProps.offset);
149-
this.setLoop(playProps.loop);
150-
this.setVolume(playProps.volume);
151-
this.setPan(playProps.pan);
148+
this.position = playProps.offset;
149+
this.loop = playProps.loop;
150+
this.volume = playProps.volume;
151+
this.pan = playProps.pan;
152152
if (playProps.startTime != null) {
153-
this.setStartTime(playProps.startTime);
154-
this.setDuration(playProps.duration);
153+
this.startTime = playProps.startTime;
154+
this.duration = playProps.duration;
155155
}
156156
this._paused = false;
157157

src/soundjs/htmlaudio/HTMLAudioPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ this.createjs = this.createjs || {};
235235

236236
p.create = function (src, startTime, duration) {
237237
var si = this.AbstractPlugin_create(src, startTime, duration);
238-
si.setPlaybackResource(null);
238+
si.playbackResource = null;
239239
return si;
240240
};
241241

src/soundjs/webaudio/WebAudioSoundInstance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ this.createjs = this.createjs || {};
216216

217217
clearTimeout(this._soundCompleteTimeout);
218218

219-
this._playbackStartTime = 0; // This is used by getPosition
219+
this._playbackStartTime = 0; // This is used by _getPosition
220220
};
221221

222222
/**

0 commit comments

Comments
 (0)