Skip to content

Commit c1a3f66

Browse files
committed
Updated to 1.0.0
1 parent 320090d commit c1a3f66

10 files changed

+1424
-1323
lines changed

docs/SoundJS_docs-1.0.0.zip

594 KB
Binary file not shown.
File renamed without changes.

lib/cordovaaudioplugin-0.6.2.min.js

-17
This file was deleted.

lib/cordovaaudioplugin-0.6.2.combined.js renamed to lib/cordovaaudioplugin-1.0.0.combined.js

+11-10
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ this.createjs = this.createjs || {};
4848
* @protected
4949
*/
5050
function Loader(loadItem) {
51-
this.AbstractLoader_constructor(loadItem, true, createjs.AbstractLoader.SOUND);
51+
this.AbstractLoader_constructor(loadItem, true, createjs.Types.SOUND);
5252

5353
/**
5454
* A Media object used to determine if src exists and to get duration
@@ -223,9 +223,10 @@ this.createjs = this.createjs || {};
223223
};
224224

225225
p.destroy = function() {
226-
// call parent function, then release
227-
this.AbstractSoundInstance_destroy();
226+
// pause and release the playback resource, then call parent function
227+
this._playbackResource.pause();
228228
this._playbackResource.release();
229+
this.AbstractSoundInstance_destroy();
229230
};
230231

231232
/**
@@ -275,7 +276,7 @@ this.createjs = this.createjs || {};
275276

276277
p._handleCleanUp = function () {
277278
clearTimeout(this._audioSpriteTimeout);
278-
this._playbackResource.pause(); // OJR cannot use .stop as it prevents .seekTo from working
279+
// OJR cannot use .stop as it prevents .seekTo from working
279280
// todo consider media.release
280281
};
281282

@@ -445,11 +446,11 @@ this.createjs = this.createjs || {};
445446

446447
/**
447448
* The capabilities of the plugin. This is generated via the {{#crossLink "CordovaAudioPlugin/_generateCapabilities"}}{{/crossLink}}
448-
* method. Please see the Sound {{#crossLink "Sound/getCapabilities"}}{{/crossLink}} method for an overview of all
449+
* method. Please see the Sound {{#crossLink "Sound/capabilities:property"}}{{/crossLink}} method for an overview of all
449450
* of the available properties.
450451
* @property _capabilities
451452
* @type {Object}
452-
* @protected
453+
* @private
453454
* @static
454455
*/
455456
s._capabilities = null;
@@ -469,11 +470,11 @@ this.createjs = this.createjs || {};
469470
};
470471

471472
/**
472-
* Determine the capabilities of the plugin. Used internally. Please see the Sound API {{#crossLink "Sound/getCapabilities"}}{{/crossLink}}
473+
* Determine the capabilities of the plugin. Used internally. Please see the Sound API {{#crossLink "Sound/capabilities:property"}}{{/crossLink}}
473474
* method for an overview of plugin capabilities.
474475
* @method _generateCapabilities
475476
* @static
476-
* @protected
477+
* @private
477478
*/
478479
s._generateCapabilities = function () {
479480
if (s._capabilities != null || !(window.cordova || window.PhoneGap || window.phonegap) || !window.Media) {return;}
@@ -556,7 +557,7 @@ this.createjs = this.createjs || {};
556557
* @type String
557558
* @static
558559
**/
559-
s.version = /*=version*/"0.6.2"; // injected by build process
560+
s.version = /*=version*/"1.0.0"; // injected by build process
560561

561562
/**
562563
* The build date for this release in UTC format.
@@ -565,6 +566,6 @@ this.createjs = this.createjs || {};
565566
* @type String
566567
* @static
567568
**/
568-
s.buildDate = /*=date*/"Thu, 26 Nov 2015 20:44:31 GMT"; // injected by build process
569+
s.buildDate = /*=date*/"Thu, 14 Sep 2017 19:47:47 GMT"; // injected by build process
569570

570571
})();

lib/cordovaaudioplugin-1.0.0.min.js

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)