@@ -2,11 +2,13 @@ var Class = require('../../utils/Class');
22var EventEmitter = require ( 'eventemitter3' ) ;
33var Extend = require ( '../../utils/object/Extend' ) ;
44var BaseSound = require ( '../BaseSound' ) ;
5+
56/*!
67 * @author Pavle Goloskokovic <pgoloskokovic@gmail.com> (http://prunegames.com)
78 */
89var NoAudioSound = new Class ( {
910 Extends : EventEmitter ,
11+
1012 /**
1113 * No audio implementation of the sound. It is used if audio has been
1214 * disabled in the game config or the device doesn't support any audio.
@@ -21,7 +23,8 @@ var NoAudioSound = new Class({
2123 * @param {string } key - Asset key for the sound.
2224 * @param {ISoundConfig } [config={}] - An optional config object containing default sound settings.
2325 */
24- initialize : function NoAudioSound ( manager , key , config ) {
26+ initialize : function NoAudioSound ( manager , key , config )
27+ {
2528 if ( config === void 0 ) { config = { } ; }
2629 EventEmitter . call ( this ) ;
2730 this . manager = manager ;
@@ -51,28 +54,36 @@ var NoAudioSound = new Class({
5154 this . currentMarker = null ;
5255 this . pendingRemove = false ;
5356 } ,
54- addMarker : function ( marker ) {
57+ addMarker : function ( marker )
58+ {
5559 return false ;
5660 } ,
57- updateMarker : function ( marker ) {
61+ updateMarker : function ( marker )
62+ {
5863 return false ;
5964 } ,
60- removeMarker : function ( markerName ) {
65+ removeMarker : function ( markerName )
66+ {
6167 return null ;
6268 } ,
63- play : function ( markerName , config ) {
69+ play : function ( markerName , config )
70+ {
6471 return false ;
6572 } ,
66- pause : function ( ) {
73+ pause : function ( )
74+ {
6775 return false ;
6876 } ,
69- resume : function ( ) {
77+ resume : function ( )
78+ {
7079 return false ;
7180 } ,
72- stop : function ( ) {
81+ stop : function ( )
82+ {
7383 return false ;
7484 } ,
75- destroy : function ( ) {
85+ destroy : function ( )
86+ {
7687 this . manager . remove ( this ) ;
7788 BaseSound . prototype . destroy . call ( this ) ;
7889 }
0 commit comments