Mac SDK
ZoomSDKRawDataController.h
1 //
2 // ZoomSDKRawDataController.h
3 // ZoomSDK
4 //
5 
6 #import <Foundation/Foundation.h>
7 #import "ZoomSDKErrors.h"
8 #import "ZoomSDKRenderer.h"
9 
11 
12 @interface ZoomSDKAudioRawData : NSObject
17 -(BOOL)canAddRef;
22 -(BOOL)addRef;
27 -(int)releaseData;
32 -(char*)getBuffer;
37 -(unsigned int)getBufferLen;
42 -(unsigned int)getSampleRate;
47 -(unsigned int)getChannelNum;
48 @end
49 
50 @protocol ZoomSDKAudioRawDataDelegate <NSObject>
55 - (void)onMixedAudioRawDataReceived:(ZoomSDKAudioRawData*)data;
61 - (void)onOneWayAudioRawDataReceived:(ZoomSDKAudioRawData*)data nodeID:(unsigned int)nodeID;
62 @end
63 
64 @interface ZoomSDKAudioRawDataHelper : NSObject
65 {
66  id<ZoomSDKAudioRawDataDelegate> _delegate;
67 }
68 @property(nonatomic, assign)id<ZoomSDKAudioRawDataDelegate> delegate;
73 - (ZoomSDKError)subscribe;
78 - (ZoomSDKError)unSubscribe;
79 @end
80 
81 
82 @interface ZoomSDKRawDataController : NSObject
83 {
84  ZoomSDKAudioRawDataHelper* _audioRawDataHelper;
85  ZoomSDKRawDataVideoSourceController* _rawDataVideoSourceHelper;
86 }
91 - (ZoomSDKError)hasRawDataLicense;
97 - (ZoomSDKError)getAudioRawDataHelper:(ZoomSDKAudioRawDataHelper**)audioRawDataHelper;
98 
104 - (ZoomSDKError)getRawDataVideoSourceHelper:(ZoomSDKRawDataVideoSourceController**)videoRawDataSendHelper;
105 
111 - (ZoomSDKError)creatRender:(ZoomSDKRenderer**)render;
112 
118 - (ZoomSDKError)destoryRender:(ZoomSDKRenderer*)render;
119 @end
-[ZoomSDKAudioRawData getSampleRate]
unsigned int getSampleRate()
Get the sample rate of this data.
-[ZoomSDKAudioRawData getChannelNum]
unsigned int getChannelNum()
Get the channel number of this data.
-[ZoomSDKAudioRawData getBufferLen]
unsigned int getBufferLen()
Get the buffer length of this data.
ZoomSDKAudioRawDataDelegate-p
Definition: ZoomSDKRawDataController.h:50
-[ZoomSDKAudioRawData getBuffer]
char * getBuffer()
Get the buffer data.
ZoomSDKRenderer
Definition: ZoomSDKRenderer.h:88
ZoomSDKRawDataController
Definition: ZoomSDKRawDataController.h:83
-[ZoomSDKAudioRawData releaseData]
int releaseData()
Release the object, if you has add ref, remeber to call this api to release when you wantn't to use t...
ZoomSDKRawDataVideoSourceController
Definition: ZoomSDKRawDataVideoSourceController.h:123
-[ZoomSDKAudioRawData addRef]
BOOL addRef()
Add reference for this object, if you doesn't add ref, this object will be released when the callback...
ZoomSDKAudioRawData
Definition: ZoomSDKRawDataController.h:13
-[ZoomSDKAudioRawData canAddRef]
BOOL canAddRef()
Get if this object can add ref.
ZoomSDKAudioRawDataHelper
Definition: ZoomSDKRawDataController.h:65