OSDN Git Service

Version 0.6.137, bugfix for X.NodeSelector.
[pettanr/clientJs.git] / 0.6.x / js / 07_audio / 01_XWebAudio.js
index 0263875..905ffd1 100644 (file)
@@ -69,7 +69,7 @@ if( X_Audio_WebAudio_context ){
                                        // TODO 当てにしていたaudioがclose 等した場合
                                        audio.proxy[ 'listenOnce' ]( 'canplaythrough', this, this._onBufferReady );
                                } else {
-                                       this.xhr = X.Net.xhrGet( url, 'arraybuffer' )
+                                       this.xhr = X.Net.xhrGet( url, { type : 'arraybuffer' } )
                                                                        [ 'listen' ]( X_EVENT_PROGRESS, this )
                                                                        [ 'listenOnce' ]( [ X_EVENT_SUCCESS, X_EVENT_COMPLETE, X_EVENT_CANCELED ], this );                                      
                                };
@@ -78,8 +78,8 @@ if( X_Audio_WebAudio_context ){
                        handleEvent : function( e ){
                                switch( e.type ){
                                        case X_EVENT_PROGRESS :
-                                               e.percent ?
-                                                       this.proxy[ 'dispatch' ]( { type : 'progress', percent : e.percent } ) :
+                                               e[ 'percent' ] ?
+                                                       this.proxy[ 'dispatch' ]( { type : 'progress', 'percent' : e[ 'percent' ] } ) :
                                                        this.proxy[ 'dispatch' ]( 'loadstart' );
                                                return;