project_files/HedgewarsMobile/Classes/AudioManagerController.h
changeset 6869 a187c280dd3d
parent 6832 fae8fd118da9
child 10108 c68cf030eded
equal deleted inserted replaced
6868:f31b5213b163 6869:a187c280dd3d
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    17  */
    17  */
    18 
    18 
    19 
    19 
    20 #import <Foundation/Foundation.h>
    20 #import <Foundation/Foundation.h>
       
    21 #import <AudioToolbox/AudioToolbox.h>
    21 
    22 
    22 
    23 
       
    24 @class AVAudioPlayer;
       
    25 
    23 @interface AudioManagerController : NSObject {
    26 @interface AudioManagerController : NSObject {
       
    27     @private
       
    28     AVAudioPlayer *backgroundMusic;
       
    29     SystemSoundID clickSound;
       
    30     SystemSoundID backSound;
       
    31     SystemSoundID selSound;
    24 
    32 
       
    33     NSOperationQueue *audioFaderQueue;
    25 }
    34 }
    26 
    35 
    27 +(void) playBackgroundMusic;
    36 @property (nonatomic,retain) AVAudioPlayer *backgroundMusic;
    28 +(void) pauseBackgroundMusic;
    37 @property (assign) SystemSoundID clickSound;
    29 +(void) stopBackgroundMusic;
    38 @property (assign) SystemSoundID backSound;
       
    39 @property (assign) SystemSoundID selSound;
    30 
    40 
    31 +(void) fadeInBackgroundMusic;
    41 @property (nonatomic,retain) NSOperationQueue *audioFaderQueue;
    32 +(void) fadeOutBackgroundMusic;
       
    33 
    42 
    34 +(void) playClickSound;
    43 +(id) mainManager;
    35 +(void) playBackSound;
       
    36 +(void) playSelectSound;
       
    37 
    44 
    38 +(void) releaseCache;
    45 -(void) playBackgroundMusic;
       
    46 -(void) pauseBackgroundMusic;
       
    47 -(void) stopBackgroundMusic;
       
    48 
       
    49 -(void) fadeInBackgroundMusic;
       
    50 -(void) fadeOutBackgroundMusic;
       
    51 
       
    52 -(void) playClickSound;
       
    53 -(void) playBackSound;
       
    54 -(void) playSelectSound;
       
    55 -(SystemSoundID) loadSound:(NSString *)snd;
       
    56 -(void) unloadSounds;
    39 
    57 
    40 @end
    58 @end