OSDN Git Service
(root)
/
pettanr
/
clientJs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 0.6.137, bugfix for X.NodeSelector.
[pettanr/clientJs.git]
/
0.6.x
/
js
/
07_audio
/
01_XWebAudio.js
diff --git
a/0.6.x/js/07_audio/01_XWebAudio.js
b/0.6.x/js/07_audio/01_XWebAudio.js
index
0263875
..
905ffd1
100644
(file)
--- a/
0.6.x/js/07_audio/01_XWebAudio.js
+++ b/
0.6.x/js/07_audio/01_XWebAudio.js
@@
-69,7
+69,7
@@
if( X_Audio_WebAudio_context ){
// TODO 当てにしていたaudioがclose 等した場合
audio.proxy[ 'listenOnce' ]( 'canplaythrough', this, this._onBufferReady );
} else {
// 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 );
};
[ '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 :
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;
this.proxy[ 'dispatch' ]( 'loadstart' );
return;