Changes in src/io/sink_apple_audio.c [9657163:2da7526]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/sink_apple_audio.c
r9657163 r2da7526 37 37 extern int createAubioBufferList(AudioBufferList *bufferList, int channels, int segmentSize); 38 38 extern void freeAudioBufferList(AudioBufferList *bufferList); 39 extern CFURLRef getURLFromPath(const char * path);39 extern CFURLRef createURLFromPath(const char * path); 40 40 char_t *getPrintableOSStatusError(char_t *str, OSStatus error); 41 41 … … 138 138 139 139 AudioFileTypeID fileType = kAudioFileWAVEType; 140 CFURLRef fileURL = getURLFromPath(s->path);140 CFURLRef fileURL = createURLFromPath(s->path); 141 141 bool overwrite = true; 142 142 OSStatus err = noErr; 143 143 err = ExtAudioFileCreateWithURL(fileURL, fileType, &clientFormat, NULL, 144 144 overwrite ? kAudioFileFlags_EraseFile : 0, &s->audioFile); 145 CFRelease(fileURL); 145 146 if (err) { 146 147 char_t errorstr[20];
Note: See TracChangeset
for help on using the changeset viewer.