AlivcLivePusher_Interactive v6.17.0
Aliyun Live Pusher Interactive SDK API Reference Manual for iOS Platforms
Loading...
Searching...
No Matches
<AlivcLivePusherAudioSampleDelegate> Protocol Reference

Callbacks related to raw audio data. More...

#include "AlivcLivePusher.h"

Inheritance diagram for <AlivcLivePusherAudioSampleDelegate>:

Instance Methods

(void) - onAudioSampleCallback:audioSample:
 The original audio data collected by the device, You can modify the data.
 
(void) - onMixedAllAudioSampleCallback:audioSample:
 Callback after mixing of push data and playback data.
 
(void) - onPlaybackAudioSampleCallback:audioSample:
 Play data callback.
 
(void) - onProcessAudioSampleCallback:audioSample:
 Data callback after 3A.
 
(void) - onPublishAudioSampleCallback:audioSample:
 Push data callback.
 

Detailed Description

Callbacks related to raw audio data.

Method Documentation

◆ onAudioSampleCallback:audioSample:

- (void) onAudioSampleCallback: (AlivcLivePusher *)  pusher
audioSample: (AlivcLivePusherAudioDataSample *)  audioSample 

The original audio data collected by the device, You can modify the data.

It is turned off by default and needs to be turned on by enableAudioFrameObserver: YES audioSource: AliLiveAudioSourceCaptured

  • This interface supports setting the sampling rate and number of channels
  • This interface supports read and write modes
    Parameters
    pusherThe live pusher engine object
    audioSampleaudio sample data AlivcLivePusherAudioDataSample
    Note
    Please do not do any time-consuming operations in this callback function, otherwise it may cause abnormal sound

◆ onMixedAllAudioSampleCallback:audioSample:

- (void) onMixedAllAudioSampleCallback: (AlivcLivePusher *)  pusher
audioSample: (AlivcLivePusherAudioDataSample *)  audioSample 

Callback after mixing of push data and playback data.

It is turned off by default and needs to be turned on by enableAudioFrameObserver: YES audioSource: AliLiveAudioSourceMixedAll

  • This interface supports setting the sampling rate and number of channels
  • This interface supports read only modes
    Parameters
    pusherThe live pusher engine object
    audioSampleaudio sample data AlivcLivePusherAudioDataSample
    Note
    Please do not do any time-consuming operations in this callback function, otherwise it may cause abnormal sound

◆ onPlaybackAudioSampleCallback:audioSample:

- (void) onPlaybackAudioSampleCallback: (AlivcLivePusher *)  pusher
audioSample: (AlivcLivePusherAudioDataSample *)  audioSample 

Play data callback.

It is turned off by default and needs to be turned on by enableAudioFrameObserver: YES audioSource: AliLiveAudioSourcePlayback

  • This interface supports setting the sampling rate and number of channels
  • This interface supports read only modes
    Parameters
    pusherThe live pusher engine object
    audioSampleaudio sample data AlivcLivePusherAudioDataSample
    Note
    Please do not do any time-consuming operations in this callback function, otherwise it may cause abnormal sound

◆ onProcessAudioSampleCallback:audioSample:

- (void) onProcessAudioSampleCallback: (AlivcLivePusher *)  pusher
audioSample: (AlivcLivePusherAudioDataSample *)  audioSample 

Data callback after 3A.

It is turned off by default and needs to be turned on by enableAudioFrameObserver: YES audioSource: AliLiveAudioSourceProcessCaptured

  • This interface supports setting the sampling rate and number of channels
  • This interface supports read and write modes
    Parameters
    pusherThe live pusher engine object
    audioSampleaudio sample data AlivcLivePusherAudioDataSample
    Note
    Please do not do any time-consuming operations in this callback function, otherwise it may cause abnormal sound

◆ onPublishAudioSampleCallback:audioSample:

- (void) onPublishAudioSampleCallback: (AlivcLivePusher *)  pusher
audioSample: (AlivcLivePusherAudioDataSample *)  audioSample 

Push data callback.

It is turned off by default and needs to be turned on by enableAudioFrameObserver: YES audioSource: AliLiveAudioSourcePub

  • This interface supports setting the sampling rate and number of channels
  • This interface supports read only modes
    Parameters
    pusherThe live pusher engine object
    audioSampleaudio sample data AlivcLivePusherAudioDataSample
    Note
    Please do not do any time-consuming operations in this callback function, otherwise it may cause abnormal sound

The documentation for this protocol was generated from the following file: