31 #import <Foundation/Foundation.h>
32 #import <AudioToolbox/AudioToolbox.h>
58 void AEError(OSStatus result,
const char * _Nonnull operation,
const char * _Nonnull file,
int line);
66 #define AECheckOSStatus(result,operation) (_AECheckOSStatus((result),(operation),strrchr(__FILE__, '/')+1,__LINE__))
67 static inline BOOL _AECheckOSStatus(OSStatus result,
const char * _Nonnull operation,
const char * _Nonnull file,
int line) {
68 if ( result != noErr ) {
69 AEError(result, operation, file, line);
93 ExtAudioFileRef _Nullable
AEExtAudioFileCreate(NSURL * _Nonnull url, AEAudioFileType fileType,
double sampleRate,
94 int channelCount, NSError * _Nullable * _Nullable error);
113 ExtAudioFileRef _Nullable
AEExtAudioFileOpen(NSURL * _Nonnull url, AudioStreamBasicDescription * _Nullable outAudioDescription,
114 UInt64 * _Nullable outLengthInFrames, NSError * _Nullable * _Nullable error);