@@ -30,7 +30,7 @@ this.createjs = this.createjs || {};
30
30
* @type String
31
31
* @static
32
32
**/
33
- s . buildDate = /*=date*/ "Tue, 24 Feb 2015 23:16:21 GMT" ; // injected by build process
33
+ s . buildDate = /*=date*/ "Wed, 25 Feb 2015 18:08:25 GMT" ; // injected by build process
34
34
35
35
} ) ( ) ;
36
36
@@ -3850,7 +3850,7 @@ this.createjs = this.createjs || {};
3850
3850
loadItem . type = "sound" ;
3851
3851
3852
3852
var data = loadItem . data ;
3853
- var numChannels = s . activePlugin . defaultNumChannels || null ;
3853
+ var numChannels = null ;
3854
3854
if ( data != null ) {
3855
3855
if ( ! isNaN ( data . channels ) ) {
3856
3856
numChannels = parseInt ( data . channels ) ;
@@ -3867,7 +3867,7 @@ this.createjs = this.createjs || {};
3867
3867
}
3868
3868
}
3869
3869
if ( loadItem . id != null ) { s . _idHash [ loadItem . id ] = { src : loadItem . src } } ;
3870
- var loader = s . activePlugin . register ( loadItem , numChannels ) ; // Note only HTML audio uses numChannels
3870
+ var loader = s . activePlugin . register ( loadItem ) ;
3871
3871
3872
3872
SoundChannel . create ( loadItem . src , numChannels ) ;
3873
3873
@@ -5780,11 +5780,10 @@ this.createjs = this.createjs || {};
5780
5780
* can use to assist with preloading.
5781
5781
* @method register
5782
5782
* @param {String } loadItem An Object containing the source of the audio
5783
- * @param {Number } instances The number of concurrently playing instances to allow for the channel at any time.
5784
5783
* Note that not every plugin will manage this value.
5785
5784
* @return {Object } A result object, containing a "tag" for preloading purposes.
5786
5785
*/
5787
- p . register = function ( loadItem , instances ) {
5786
+ p . register = function ( loadItem ) {
5788
5787
var loader = this . _loaders [ loadItem . src ] ;
5789
5788
if ( loader && ! loader . canceled ) { return this . _loaders [ loadItem . src ] ; } // already loading/loaded this, so don't load twice
5790
5789
// OJR potential issue that we won't be firing loaded event, might need to trigger if this is already loaded?
@@ -6693,6 +6692,7 @@ this.createjs = this.createjs || {};
6693
6692
* A hash lookup of if a base audio tag is available, indexed by the audio source
6694
6693
* @property _tagsUsed
6695
6694
* @type {{} }
6695
+ * @protected
6696
6696
* @static
6697
6697
*/
6698
6698
s . _tagUsed = { } ;
@@ -7105,9 +7105,8 @@ this.createjs = this.createjs || {};
7105
7105
* <h4>Known Browser and OS issues for HTML Audio</h4>
7106
7106
* <b>All browsers</b><br />
7107
7107
* Testing has shown in all browsers there is a limit to how many audio tag instances you are allowed. If you exceed
7108
- * this limit, you can expect to see unpredictable results. This will be seen as soon as you register sounds, as
7109
- * tags are precreated to allow Chrome to load them. Please use {{#crossLink "Sound.MAX_INSTANCES"}}{{/crossLink}} as
7110
- * a guide to how many total audio tags you can safely use in all browsers.
7108
+ * this limit, you can expect to see unpredictable results. Please use {{#crossLink "Sound.MAX_INSTANCES"}}{{/crossLink}} as
7109
+ * a guide to how many total audio tags you can safely use in all browsers. This issue is primarily limited to IE9.
7111
7110
*
7112
7111
* <b>IE html limitations</b><br />
7113
7112
* <ul><li>There is a delay in applying volume changes to tags that occurs once playback is started. So if you have
@@ -7116,7 +7115,7 @@ this.createjs = this.createjs || {};
7116
7115
* <li>MP3 encoding will not always work for audio tags if it's not default. We've found default encoding with
7117
7116
* 64kbps works.</li>
7118
7117
* <li>Occasionally very short samples will get cut off.</li>
7119
- * <li>There is a limit to how many audio tags you can load and play at once, which appears to be determined by
7118
+ * <li>There is a limit to how many audio tags you can load or play at once, which appears to be determined by
7120
7119
* hardware and browser settings. See {{#crossLink "HTMLAudioPlugin.MAX_INSTANCES"}}{{/crossLink}} for a safe estimate.
7121
7120
* Note that audio sprites can be used as a solution to this issue.</li></ul>
7122
7121
*
@@ -7154,15 +7153,14 @@ this.createjs = this.createjs || {};
7154
7153
7155
7154
// Public Properties
7156
7155
/**
7157
- * The default number of instances to allow. Used by {{#crossLink "Sound"}}{{/crossLink}} when a source
7158
- * is registered using the {{#crossLink "Sound/register"}}{{/crossLink}} method. This is only used if
7159
- * a value is not provided.
7156
+ * This is no longer needed as we are now using object pooling for tags.
7160
7157
*
7161
7158
* <b>NOTE this property only exists as a limitation of HTML audio.</b>
7162
7159
* @property defaultNumChannels
7163
7160
* @type {Number }
7164
7161
* @default 2
7165
7162
* @since 0.4.0
7163
+ * @deprecated
7166
7164
*/
7167
7165
this . defaultNumChannels = 2 ;
7168
7166
@@ -7181,7 +7179,7 @@ this.createjs = this.createjs || {};
7181
7179
7182
7180
// Static Properties
7183
7181
/**
7184
- * The maximum number of instances that can be loaded and played. This is a browser limitation, primarily limited to IE9.
7182
+ * The maximum number of instances that can be loaded or played. This is a browser limitation, primarily limited to IE9.
7185
7183
* The actual number varies from browser to browser (and is largely hardware dependant), but this is a safe estimate.
7186
7184
* Audio sprites work around this limitation.
7187
7185
* @property MAX_INSTANCES
@@ -7298,9 +7296,9 @@ this.createjs = this.createjs || {};
7298
7296
7299
7297
7300
7298
// public methods
7301
- p . register = function ( loadItem , instances ) {
7299
+ p . register = function ( loadItem ) {
7302
7300
var tag = createjs . HTMLAudioTagPool . get ( loadItem . src ) ;
7303
- var loader = this . AbstractPlugin_register ( loadItem , instances ) ;
7301
+ var loader = this . AbstractPlugin_register ( loadItem ) ;
7304
7302
loader . setTag ( tag ) ;
7305
7303
7306
7304
return loader ;
0 commit comments