Skip to content

Commit

Permalink
Renamed AEExtAudioFileRefCreate to AEExtAudioFileCreate
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltyson committed Jul 2, 2016
1 parent e85c89e commit 45e8614
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ - (instancetype)initWithRenderer:(AERenderer *)renderer URL:(NSURL *)url type:(A

if ( !(self = [super initWithRenderer:renderer]) ) return nil;

if ( !(_audioFile = AEExtAudioFileRefCreate(url, type, self.renderer.sampleRate, numberOfChannels, error)) ) return nil;
if ( !(_audioFile = AEExtAudioFileCreate(url, type, self.renderer.sampleRate, numberOfChannels, error)) ) return nil;

// Prime async recording
ExtAudioFileWriteAsync(_audioFile, 0, NULL);
Expand Down
2 changes: 1 addition & 1 deletion TheAmazingAudioEngine/Outputs/AEAudioFileOutput.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ - (instancetype)initWithRenderer:(AERenderer *)renderer URL:(NSURL *)url type:(A
error:(NSError *__autoreleasing _Nullable *)error {
if ( !(self = [super init]) ) return nil;

if ( !(_audioFile = AEExtAudioFileRefCreate(url, type, sampleRate, channelCount, error)) ) return nil;
if ( !(_audioFile = AEExtAudioFileCreate(url, type, sampleRate, channelCount, error)) ) return nil;

self.fileURL = url;
self.sampleRate = sampleRate;
Expand Down
6 changes: 4 additions & 2 deletions TheAmazingAudioEngine/Utilities/AEUtilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ static inline BOOL _AECheckOSStatus(OSStatus result, const char * _Nonnull opera
* @param error If not NULL, the error on output
* @return The initialized ExtAudioFileRef, or NULL on error
*/
ExtAudioFileRef _Nullable AEExtAudioFileRefCreate(NSURL * _Nonnull url, AEAudioFileType fileType, double sampleRate,
int channelCount, NSError * _Nullable * _Nullable error);
ExtAudioFileRef _Nullable AEExtAudioFileCreate(NSURL * _Nonnull url, AEAudioFileType fileType, double sampleRate,
int channelCount, NSError * _Nullable * _Nullable error);

#define AEExtAudioFileRefCreate AEExtAudioFileCreate

#ifdef __cplusplus
}
Expand Down
2 changes: 1 addition & 1 deletion TheAmazingAudioEngine/Utilities/AEUtilities.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ BOOL AERateLimit(void) {
return YES;
}

ExtAudioFileRef AEExtAudioFileRefCreate(NSURL * url, AEAudioFileType fileType, double sampleRate, int channelCount,
ExtAudioFileRef AEExtAudioFileCreate(NSURL * url, AEAudioFileType fileType, double sampleRate, int channelCount,
NSError ** error) {

AudioStreamBasicDescription asbd = {
Expand Down

0 comments on commit 45e8614

Please sign in to comment.