OSDN Git Service

Version 0.6.217, add #switch for X.Audio.
[pettanr/clientJs.git] / 0.6.x / js / 07_audio / 01_XWebAudio.js
index 67011bb..1cc3cba 100644 (file)
@@ -306,7 +306,7 @@ if( X_WebAudio_context ){
                        this.audioBuffer = buffer;
                        this.duration    = buffer.duration * 1000;
 
-                                       this.disatcher[ 'asyncDispatch' ]( X_WebAudio_touchState ? X_EVENT_MEDIA_TOUCH_FOR_LOAD : X_EVENT_READY );
+                                       this.disatcher[ 'asyncDispatch' ]( X_WebAudio_touchState ? X_EVENT_MEDIA_WAIT_FOR_TOUCH : X_EVENT_READY );
                                },
                        
                        actualPlay : function(){
@@ -462,7 +462,7 @@ if( X_WebAudio_context ){
 
                        canPlay     : X_Audio_codecs,
 
-                       detect      : function( proxy, source, ext ){
+                       detect      : function( proxy, ext /* hash */ ){
                                proxy[ 'asyncDispatch' ]( { type : X_EVENT_COMPLETE, canPlay : X_Audio_codecs[ ext ] } );
                        },