session-ios/Signal/src/audio/SoundPlayer.h
Gil Azaria 6951fd1fbe Fixed issue #139.
Testing has been completed on outgoing calls only. It is recommended that testing is conducted on incoming calls before a commit to upstream.
2014-11-02 00:21:49 +01:00

29 lines
735 B
Objective-C

#import <Foundation/Foundation.h>
#import "SoundInstance.h"
/**
* SoundPlayer tracks and controls all Audiofiles being played. Currently only one instance
* of a given sound can be played at a given time. Attemping to play multiple intances of a
* sound is ignored. Multiple different sound instances can be played concurrently.
*/
@protocol SoundPlayerDelegate;
@interface SoundPlayer : NSObject
@property (strong, nonatomic) id<SoundPlayerDelegate> delegate;
-(void) playSound:(SoundInstance*) player;
-(void) stopSound:(SoundInstance*) player;
-(void) stopAllAudio;
-(void) awake;
@end
@protocol SoundPlayerDelegate <NSObject>
@optional
- (void)didCompleteSoundInstanceOfType:(SoundInstanceType)instanceType;
@end