Conforms to NSObject
Declared in FSAudioStream.h

Overview

To access the PCM audio data, use this delegate.

Instance Methods

audioStream:samplesAvailable:frames:description:

Called when there are PCM audio samples available. Do not do any blocking operations when you receive the data. Instead, copy the data and process it so that the main event loop doesn’t block. Failing to do so may cause glitches to the audio playback.

- (void)audioStream:(FSAudioStream *)audioStream samplesAvailable:(AudioBufferList *)samples frames:(UInt32)frames description:(AudioStreamPacketDescription)description

Parameters

audioStream

The audio stream the samples are from.

samples

The samples as a buffer list.

frames

The number of frames.

description

Description of the data provided.

Discussion

Called when there are PCM audio samples available. Do not do any blocking operations when you receive the data. Instead, copy the data and process it so that the main event loop doesn’t block. Failing to do so may cause glitches to the audio playback.

Notice that the delegate callback may occur from other than the main thread so make sure your delegate code is thread safe.

Declared In

FSAudioStream.h