AudioFileSetProperty returning 'kAudioFileUnsupportedPropertyError (pty?)'

前端 未结 1 395
滥情空心
滥情空心 2020-12-19 12:34

I\'m having difficulties writing a audio file\'s metadata:

AudioFileID fileID = nil;
AudioFileOpenURL((__bridge CFURLRef) url, kAudioFileReadWritePermission,         


        
相关标签:
1条回答
  • 2020-12-19 12:42

    Doing almost the same thing here. You can check the OSStatus error with the following code.

    NSError *error = [NSError errorWithDomain:NSOSStatusErrorDomain code:status userInfo:nil];
    NSLog(@"Error: %@", [error description]);
    

    And what I got is:

    Error: Error Domain=NSOSStatusErrorDomain Code=1886681407 "The operation couldn’t be completed. (OSStatus error 1886681407.)"

    Could it be that iOS just doesn't allow you to modify kAudioFilePropertyInfoDictionary?


    Update:

    I just ported idlib3 to iOS and you can use it to modify the ID3 tag. An example project is also included. Check it here https://github.com/rjyo/libid3-ios

    0 讨论(0)
提交回复
热议问题