OSDN Git Service

Version 0.6.170, X.Audio is working ADVANCED_OPTIMIZATIONS.
[pettanr/clientJs.git] / 0.6.x / js / 07_audio / 00_XAudio.js
index 783e885..b12e679 100644 (file)
@@ -271,12 +271,12 @@ var X_Audio_AbstractAudioBackend = X_EventDispatcher[ 'inherits' ](
                play : function( startTime, endTime, loop, loopStartTime, loopEndTime ){\r
                        if( 0 <= startTime ){\r
                                this.setState( {\r
-                                       currentTime   : startTime,\r
-                                       startTime     : startTime,\r
-                                       endTime       : endTime,\r
-                                       loop          : loop,\r
-                                       loopStartTime : loopStartTime,\r
-                                       loopEndTime   : loopEndTime\r
+                                       'currentTime'   : startTime,\r
+                                       'startTime'     : startTime,\r
+                                       'endTime'       : endTime,\r
+                                       'loop'          : loop,\r
+                                       'loopStartTime' : loopStartTime,\r
+                                       'loopEndTime'   : loopEndTime\r
                                } );\r
                        };\r
                        this.actualPlay();\r
@@ -284,7 +284,7 @@ var X_Audio_AbstractAudioBackend = X_EventDispatcher[ 'inherits' ](
                \r
                seek : function( seekTime ){\r
                        if( seekTime < X_AudioWrapper_getEndTime( this ) ){\r
-                               this.setState( { currentTime : seekTime } );\r
+                               this.setState( { 'currentTime' : seekTime } );\r
                        };\r
                },\r
                \r
@@ -296,21 +296,21 @@ var X_Audio_AbstractAudioBackend = X_EventDispatcher[ 'inherits' ](
                        if( v === undefined ){\r
                                return this.autoLoop;\r
                        };\r
-                       this.setState( { loop : v } );\r
+                       this.setState( { 'loop' : v } );\r
                },\r
 \r
                volume : function( v ){\r
                        if( v === undefined ){\r
                                return this.gain;\r
                        };\r
-                       this.setState( { volume : v } );\r
+                       this.setState( { 'volume' : v } );\r
                },\r
 \r
                currentTime : function( v ){\r
                        if( v === undefined ){\r
                                return this.playing ? this.getActualCurrentTime() : this.seekTime;\r
                        };\r
-                       this.setState( { currentTime : v } );\r
+                       this.setState( { 'currentTime' : v } );\r
                },\r
                \r
                getState : function(){\r
@@ -432,6 +432,8 @@ var X_Audio_AbstractAudioBackend = X_EventDispatcher[ 'inherits' ](
                                                        };\r
                                                };\r
                                                break;\r
+                                       default :\r
+                                               throw 'bad arg';\r
                                };\r
                        };\r
                        \r