Class SPXPullAudioOutputStream

Declaration

@class SPXPullAudioOutputStream : SPXAudioOutputStream;

Description

Represents memory backed pull audio output stream used for custom audio output.

Added in version 1.7.0

Methods

init

Creates a memory backed PullAudioOutputStream with the specified audio format.

- (instancetype _Nonnull)init

Returns

An instance of pull audio output stream

read:length:

Reads a chunk of the audio data and fill it to given buffer

- (NSUInteger)read:(NSMutableData * _Nonnull)data length:(NSUInteger)length

Parameters

  • data - a buffer to receive read data.
  • length - the length of data to receive.

Returns

size of data filled to the buffer, 0 means end of stream