X-Git-Url: http://git.osdn.jp/view?p=pettanr%2FclientJs.git;a=blobdiff_plain;f=0.6.x%2Fjs%2F07_audio%2F00_XAudio.js;fp=0.6.x%2Fjs%2F07_audio%2F00_XAudio.js;h=60bc56e5929ea90716df048815592944988f9c22;hp=4664aa0b2cc0f9e6f1e700c0b1f217f7376f7950;hb=66ccef8a1fdd3994dd3c75dcfede668ea55f1d2e;hpb=4e4ab3be10850546063d4a4b93250ed142bb8cd2 diff --git a/0.6.x/js/07_audio/00_XAudio.js b/0.6.x/js/07_audio/00_XAudio.js index 4664aa0..60bc56e 100644 --- a/0.6.x/js/07_audio/00_XAudio.js +++ b/0.6.x/js/07_audio/00_XAudio.js @@ -89,7 +89,7 @@ X[ 'Audio' ] = X_EventDispatcher[ 'inherits' ]( X_Type_isArray( sourceList ) ? X_Array_copy( sourceList ) : [ sourceList ], opt_option || {} ); this[ 'listenOnce' ]( [ X_EVENT_BACKEND_READY, X_EVENT_BACKEND_NONE, X_EVENT_KILL_INSTANCE ], X_Audio_handleEvent ); - X_ViewPort[ 'listenOnce' ]( X_EVENT_UNLOAD, this, X_AudioSprite_handleEvent ); + X_ViewPort[ 'listenOnce' ]( X_EVENT_UNLOAD, this, X_Audio_handleEvent ); }, /** @@ -231,7 +231,7 @@ function X_Audio_handleEvent( e ){ this[ 'listenOnce' ]( X_EVENT_READY, X_Audio_handleEvent ); break; - case X_EVENT_READY : + case X_EVENT_READY : // TODO AudioBase 側へ行かない? pair = X_Pair_get( this ); ( pair.autoplay || pair._playReserved ) && pair.actualPlay(); delete pair._playReserved; @@ -243,7 +243,7 @@ function X_Audio_handleEvent( e ){ break; case X_EVENT_KILL_INSTANCE : - X_ViewPort[ 'unlisten' ]( X_EVENT_UNLOAD, this, X_AudioSprite_handleEvent ); + X_ViewPort[ 'unlisten' ]( X_EVENT_UNLOAD, this, X_Audio_handleEvent ); if( backend = X_Pair_get( this ) ){ backend[ 'kill' ](); X_Pair_release( this, backend ); @@ -286,7 +286,7 @@ function X_Audio_onEndedDetection( e, xaudio, sourceList, option, source, ext, s 'backendID' : i }; // WebAudio - if( this.backendID === 1 ) _e[ 'needTouchForPlay' ] = X_WebAudio_need1stTouch; + if( this.backendID === 1 ) _e[ 'needTouchForPlay' ] = /* X_WebAudio_need1stTouch && */ X_WebAudio_isNoTouch; // HTMLAudio if( this.backendID === 2 ) _e[ 'needTouchForLoad' ] = X_HTMLAudio_need1stTouch; @@ -313,7 +313,7 @@ var X_AudioBase = X_EventDispatcher[ 'inherits' ]( 'X.AudioBase', X_Class.ABSTRACT, { - disatcher : null, + dispatcher : null, startTime : 0, // state_startTime endTime : -1, // state_startTime