MillicastSDK 2.2.0
Loading...
Searching...
No Matches
MCCustomAudioSource Interface Reference

Public Member Functions

instancetype initWithCppSource: (millicast::CustomAudioSource::Ptr audioSource)
 

Detailed Description

/ Starts capture. Effectively creates an audio track that can be added to the publisher. / - Returns: An audio track. See MCPublisher/addTrackWithAudioTrack:completionHandler: / to learn how to attach this track to a publisher.

  • (MCTrack*) startCapture;

/ To be called whenever the application wishes to feed audio frames to the source. / - Parameters: / - frame: An audio frame to feed. See MCAudioFrame and MCCMSampleBufferFrame for / possible audio frames to feed. Currently only 48kHz and 44.1kHz are supported sample formats.

  • (void) onAudioFrame: (MCAudioFrame*) frame;

/ Query whether the source is currently capturing. / - Returns: True if the application is capturing, false otherwise.

  • (bool) isCapturing;

/ Stops the underlying audio tracks and informs the SDK to stop any pending operations related to this custom source.

  • (void) stopCapture;

@end

/ Responsible for building MCCustomAudioSource. MILLICAST_API

Member Function Documentation

◆ initWithCppSource:()

instancetype MCCustomAudioSource()::initWithCppSource: ( millicast::CustomAudioSource::Ptr audioSource)
virtual

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