Red5Pro IOS Client SDK

 7.3.0
Core SDK for IOS
R5AudioController.h
1 //
2 // R5AudioController.h
3 // red5streaming
4 //
5 // Created by Andy Zupko on 8/28/15.
6 // Copyright (c) 2015 Infrared5. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "sys/stat.h"
11 #import "global.h"
12 #import <AudioToolbox/AudioToolbox.h>
13 #import <AudioUnit/AudioUnit.h>
14 #import <AVFoundation/AVAudioFormat.h>
15 
19 typedef enum R5AudioControllerMode{
20  R5AudioControllerModeStandardIO,
21  R5AudioControllerModeEchoCancellation
22 } R5AudioControllerMode;
23 
24 
28 @interface R5AudioController : NSObject{
29 
30 
31 }
32 
39 
43 @property (readonly) BOOL isPlaying;
44 
48 @property (readonly) BOOL isRecording;
49 
53 @property (nonatomic) AudioUnitParameterValue pan;
54 
58 @property (nonatomic) AudioUnitParameterValue volume;
59 
61 
65 @property int RecordSampleRate;
66 
70 @property int PlaybackSampleRate;
71 
75 @property int PlaybackChannelCount;
76 
77 
79 
87 -(instancetype)initWithMode:(R5AudioControllerMode)mode;
88 
89 -(double) currentStreamTime;
90 
91 @end
R5AudioController * sharedInstance()
BOOL isRecording
Definition: R5AudioController.h:48
Controller Object for R5Stream and R5Microphones. A shared instance is used unless otherwise defined ...
Definition: R5AudioController.h:28
AudioUnitParameterValue volume
Definition: R5AudioController.h:58
BOOL isPlaying
Definition: R5AudioController.h:43
AudioUnitParameterValue pan
Definition: R5AudioController.h:53