Meeting SDK for macOS API Reference
Loading...
Searching...
No Matches
ZoomSDKAudioRawDataSender Class Reference

Sends external raw audio data to the Zoom meeting. More...

#include <ZoomSDKRawDataAudioSourceController.h>

Inherits NSObject.

Instance Methods

(ZoomSDKError- send:dataLength:sampleRate:channel:
 Sends audio raw data, Audio sample bits must be 16-bit audio.
 

Detailed Description

Sends external raw audio data to the Zoom meeting.

Definition at line 15 of file ZoomSDKRawDataAudioSourceController.h.

Method Documentation

◆ send:dataLength:sampleRate:channel:

- (ZoomSDKError) send: (char *) data
dataLength: (unsigned int) length
sampleRate: (int) rate
channel: (ZoomSDKAudioChannel) channel 

Sends audio raw data, Audio sample bits must be 16-bit audio.

Parameters
dataThe audio data‘s address.
lengthThe audio data’s length. Must be an even number.
rateThe audio data's sampling rate. When the channel is mono, supported sample rates are 8000, 11025, 16000, 32000, 44100, 48000, 50000, 50400, 96000, 192000, or 2822400. When the channel is stereo, supported sample rates are 8000, 16000, 32000, 44100, 48000, 50000, 50400, 96000, or 192000.
channelIdentifies the audio data channel type, default is ZoomSDKAudioChannel_Mono.
Returns
If the function succeeds, it returns ZoomSDKError_Success. Otherwise, this function returns an error.