#import <Foundation/Foundation.h>
#import <AudioToolbox/AudioToolbox.h>
Go to the source code of this file.
typedef void(^ AEAudioFileReaderLoadBlock)(AudioBufferList *_Nullable audio, UInt32 length, NSError *_Nullable error) |
Load block.
- Parameters
-
audio | Audio buffer list containing the fully-loaded audio. You are responsible for deallocating this buffer. If an error occurred, this will be NULL. |
length | The length of the audio, in frames |
error | The error, if one occurred |
typedef void(^ AEAudioFileReaderIncrementalReadBlock)(const AudioBufferList *_Nonnull audio, UInt32 length) |
Incremental read block.
- Parameters
-
audio | Audio buffer list containing a small amount of loaded audio |
length | The length of the buffer list |
typedef void(^ AEAudioFileReaderCompletionBlock)(NSError *_Nullable error) |
Completion block.
- Parameters
-
error | If an error occurred, the error; otherwise NULL |