AEAudioFileReader.h File Reference
#import <Foundation/Foundation.h>
#import <AudioToolbox/AudioToolbox.h>

Go to the source code of this file.

Classes

class  AEAudioFileReader
 Audio file reader. More...
 

Typedefs

typedef void(^ AEAudioFileReaderLoadBlock )(AudioBufferList *_Nullable audio, UInt32 length, NSError *_Nullable error)
 Load block.
 
typedef void(^ AEAudioFileReaderIncrementalReadBlock )(const AudioBufferList *_Nonnull audio, UInt32 length)
 Incremental read block.
 
typedef void(^ AEAudioFileReaderCompletionBlock )(NSError *_Nullable error)
 Completion block.
 

Typedef Documentation

typedef void(^ AEAudioFileReaderLoadBlock)(AudioBufferList *_Nullable audio, UInt32 length, NSError *_Nullable error)

Load block.

Parameters
audioAudio buffer list containing the fully-loaded audio. You are responsible for deallocating this buffer. If an error occurred, this will be NULL.
lengthThe length of the audio, in frames
errorThe error, if one occurred
typedef void(^ AEAudioFileReaderIncrementalReadBlock)(const AudioBufferList *_Nonnull audio, UInt32 length)

Incremental read block.

Parameters
audioAudio buffer list containing a small amount of loaded audio
lengthThe length of the buffer list
typedef void(^ AEAudioFileReaderCompletionBlock)(NSError *_Nullable error)

Completion block.

Parameters
errorIf an error occurred, the error; otherwise NULL