mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
6951fd1fbe
Testing has been completed on outgoing calls only. It is recommended that testing is conducted on incoming calls before a commit to upstream.
29 lines
735 B
Objective-C
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
|