Video SDK for MacOS API Reference
Loading...
Searching...
No Matches
ZMVideoSDKAudioSender Class Reference

Interface for sending raw audio data. More...

#include <ZMVideoSDKAudioSendRawdata.h>

Inherits NSObject.

Instance Methods

(ZMVideoSDKErrors- send:dataLength:sampleRate:channel:
 Send audio raw data, and sampling bits must be 16.
 

Detailed Description

Interface for sending raw audio data.

Definition at line 18 of file ZMVideoSDKAudioSendRawdata.h.

Method Documentation

◆ send:dataLength:sampleRate:channel:

- (ZMVideoSDKErrors) send: (char *) data
dataLength: (unsigned int) length
sampleRate: (int) rate
channel: (ZMVideoSDKAudioChannel) channel 

Send audio raw data, and sampling bits must be 16.

Parameters
dataData Pointer to the audio data buffer.
lengthThe length of audio data in bytes (must be an even number).
rateSampling rate of the audio data. Supported rates depend on the channel count:
  • Mono: 8000, 11025, 16000, 32000, 44100, 48000, 50000, 50400, 96000, 192000, 2822400
  • Stereo: 8000, 16000, 32000, 44100, 48000, 50000, 50400, 96000, 192000
channelIdentifies the audio data channel type. default is ZMVideoSDKAudioChannel_Mono.
Returns
If the function succeeds, it will return ZMVideoSDKErrors_Success.