Skip to content

Commit

Permalink
Updated libs
Browse files Browse the repository at this point in the history
  • Loading branch information
lannymcnie committed Oct 10, 2017
1 parent dc873d1 commit 640d610
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
22 changes: 20 additions & 2 deletions lib/soundjs-NEXT.js
Expand Up @@ -57,7 +57,7 @@ this.createjs = this.createjs || {};
* @type String
* @static
**/
s.buildDate = /*=date*/"Thu, 14 Sep 2017 22:19:45 GMT"; // injected by build process
s.buildDate = /*=date*/"Tue, 10 Oct 2017 22:09:49 GMT"; // injected by build process

})();

Expand Down Expand Up @@ -5551,6 +5551,8 @@ this.createjs = this.createjs || {};
get: this._getVolume,
set: this._setVolume
});
this.getVolume = createjs.deprecate(this._getVolume, "AbstractSoundInstance.getVolume");
this.setVolume = createjs.deprecate(this._setVolume, "AbstractSoundInstance.setVolume");

/**
* The pan of the sound, between -1 (left) and 1 (right). Note that pan is not supported by HTML Audio.
Expand All @@ -5565,6 +5567,8 @@ this.createjs = this.createjs || {};
get: this._getPan,
set: this._setPan
});
this.getPan = createjs.deprecate(this._getPan, "AbstractSoundInstance.getPan");
this.setPan = createjs.deprecate(this._setPan, "AbstractSoundInstance.setPan");

/**
* Audio sprite property used to determine the starting offset.
Expand All @@ -5578,6 +5582,8 @@ this.createjs = this.createjs || {};
get: this._getStartTime,
set: this._setStartTime
});
this.getStartTime = createjs.deprecate(this._getStartTime, "AbstractSoundInstance.getStartTime");
this.setStartTime = createjs.deprecate(this._setStartTime, "AbstractSoundInstance.setStartTime");

/**
* Sets or gets the length of the audio clip, value is in milliseconds.
Expand All @@ -5592,6 +5598,8 @@ this.createjs = this.createjs || {};
get: this._getDuration,
set: this._setDuration
});
this.getDuration = createjs.deprecate(this._getDuration, "AbstractSoundInstance.getDuration");
this.setDuration = createjs.deprecate(this._setDuration, "AbstractSoundInstance.setDuration");

/**
* Object that holds plugin specific resource need for audio playback.
Expand All @@ -5608,6 +5616,8 @@ this.createjs = this.createjs || {};
set: this._setPlaybackResource
});
if(playbackResource !== false && playbackResource !== true) { this._setPlaybackResource(playbackResource); }
this.getPlaybackResource = createjs.deprecate(this._getPlaybackResource, "AbstractSoundInstance.getPlaybackResource");
this.setPlaybackResource = createjs.deprecate(this._setPlaybackResource, "AbstractSoundInstance.setPlaybackResource");

/**
* The position of the playhead in milliseconds. This can be set while a sound is playing, paused, or stopped.
Expand All @@ -5622,6 +5632,8 @@ this.createjs = this.createjs || {};
get: this._getPosition,
set: this._setPosition
});
this.getPosition = createjs.deprecate(this._getPosition, "AbstractSoundInstance.getPosition");
this.setPosition = createjs.deprecate(this._setPosition, "AbstractSoundInstance.setPosition");

/**
* The number of play loops remaining. Negative values will loop infinitely.
Expand All @@ -5637,6 +5649,8 @@ this.createjs = this.createjs || {};
get: this._getLoop,
set: this._setLoop
});
this.getLoop = createjs.deprecate(this._getLoop, "AbstractSoundInstance.getLoop");
this.setLoop = createjs.deprecate(this._setLoop, "AbstractSoundInstance.setLoop");

/**
* Mutes or unmutes the current audio instance.
Expand All @@ -5651,6 +5665,8 @@ this.createjs = this.createjs || {};
get: this._getMuted,
set: this._setMuted
});
this.getMuted = createjs.deprecate(this._getMuted, "AbstractSoundInstance.getMuted");
this.setMuted = createjs.deprecate(this._setMuted, "AbstractSoundInstance.setMuted");

/**
* Pauses or resumes the current audio instance.
Expand All @@ -5663,6 +5679,8 @@ this.createjs = this.createjs || {};
get: this._getPaused,
set: this._setPaused
});
this.getPaused = createjs.deprecate(this._getPaused, "AbstractSoundInstance.getPaused");
this.setPaused = createjs.deprecate(this._setPaused, "AbstractSoundInstance.setPaused");


// Events
Expand Down Expand Up @@ -6568,7 +6586,7 @@ this.createjs = this.createjs || {};
this._audioSources[src] = event.result;
for (var i = 0, l = this._soundInstances[src].length; i < l; i++) {
var item = this._soundInstances[src][i];
item.setPlaybackResource(this._audioSources[src]);
item.playbackResource = this._audioSources[src];
// ToDo consider adding play call here if playstate == playfailed
this._soundInstances[src] = null;
}
Expand Down

0 comments on commit 640d610

Please sign in to comment.