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

Sends share audio raw data. More...

#include <MobileRTCShareAudioSender.h>

Inherits NSObject.

Instance Methods

(MobileRTCRawDataError- sendShareAudio:dataLength:sampleRate:audioChannel:
 Sends share audio raw data.
 

Detailed Description

Sends share audio raw data.

Definition at line 14 of file MobileRTCShareAudioSender.h.

Method Documentation

◆ sendShareAudio:dataLength:sampleRate:audioChannel:

- (MobileRTCRawDataError) sendShareAudio: (char *) data
dataLength: (NSUInteger) length
sampleRate: (NSUInteger) rate
audioChannel: (MobileRTCAudioChannel) channel 

Sends share audio raw data.

Parameters
dataThe audio data address.
lengthThe audio data length, in even numbers.
rateThe audio data sampling rate.
channelThe channel type. The default is MobileRTCAudioChannel_Mono.
Returns
If the function succeeds, it will return MobileRTCRawDataError_Success. Otherwise return an error.
Warning
Supported sample rates: Mono: 8000/11025/16000/32000/44100/48000/50000/50400/96000/192000. Stereo: 8000/16000/32000/44100/48000/50000/50400/96000/192000. Channels: mono and stereo. Resolution: little-endian, 16-bit.