Meeting SDK for iOS API Reference
Loading...
Searching...
No Matches
MobileRTCAudioRawData Class Reference

Represents audio raw data received from the SDK. More...

#include <MobileRTCAudioRawData.h>

Inherits NSObject.

Instance Methods

(BOOL) - canAddRef
 Determines if the reference count can be increased.
 
(BOOL) - addRef
 Increases the reference count by 1.
 
(NSInteger) - releaseRef
 Decreases the reference count by 1.
 

Properties

char *_Nullable buffer
 A pointer to the audio buffer data.
 
NSInteger bufferLen
 The length of the audio buffer data.
 
NSInteger sampleRate
 The audio sampling rate.
 
NSInteger channelNum
 The number of audio channels.
 
NSDate * timeStamp
 The timestamp of the audio data.
 

Detailed Description

Represents audio raw data received from the SDK.

Definition at line 12 of file MobileRTCAudioRawData.h.

Method Documentation

◆ addRef

- (BOOL) addRef

Increases the reference count by 1.

Returns
YES if the function succeeds. Otherwise, NO.

◆ canAddRef

- (BOOL) canAddRef

Determines if the reference count can be increased.

Returns
YES if the reference count can be increased. Otherwise, NO.

◆ releaseRef

- (NSInteger) releaseRef

Decreases the reference count by 1.

Returns
If the function succeeds, it returns the reference count of this object.

Property Documentation

◆ buffer

- (char* _Nullable) buffer
readwritenonatomicassign

A pointer to the audio buffer data.

Definition at line 17 of file MobileRTCAudioRawData.h.

◆ bufferLen

- (NSInteger) bufferLen
readwritenonatomicassign

The length of the audio buffer data.

Definition at line 22 of file MobileRTCAudioRawData.h.

◆ channelNum

- (NSInteger) channelNum
readwritenonatomicassign

The number of audio channels.

Definition at line 32 of file MobileRTCAudioRawData.h.

◆ sampleRate

- (NSInteger) sampleRate
readwritenonatomicassign

The audio sampling rate.

Definition at line 27 of file MobileRTCAudioRawData.h.

◆ timeStamp

- (NSDate*) timeStamp
readwritenonatomicstrong

The timestamp of the audio data.

Definition at line 37 of file MobileRTCAudioRawData.h.