Sdílet prostřednictvím


Class SPXPushAudioOutputStream

Declaration

@class SPXPushAudioOutputStream : SPXAudioOutputStream;

Description

Represents a push audio output stream used for custom audio output configurations.

Added in version 1.7.0

Methods

initWithWriteHandler:closeHandler:

Initializes an SPXPushAudioOutputStream that delegates to the specified callback interface for write() and close() methods.

- (instancetype _Nullable)initWithWriteHandler:(SPXPushAudioOutputStreamWriteHandler _Nonnull)writeHandler
    closeHandler:(SPXPushAudioOutputStreamCloseHandler _Nonnull)closeHandler

Parameters

  • writeHandler - Handler which will be called in order to write data synchronously to the data stream.
  • closeHandler - Handler which will be called to close the audio stream.

Returns

an instance of push audio output stream.