OSStatus error 1718449215

前端 未结 8 1227
陌清茗
陌清茗 2020-12-08 19:25

I have created an iPhone application to record our voice. When I try to record, I am getting error message in following statement.


recorder = [[ AVAudioReco         


        
相关标签:
8条回答
  • 2020-12-08 19:48

    If you're in c or cpp code you can do this.

    char code[4];
    *((SInt32*)&code[0]) = error;
    
    0 讨论(0)
  • 2020-12-08 19:52

    1718449215 is the decimal representation of the four character code for the kAudioFormatUnsupportedDataFormatError error.

    In general you can use something like this to get more information from the errors you receive:

    NSError *error = [NSError errorWithDomain:NSOSStatusErrorDomain
                              code:my_error_code
                              userInfo:nil];
    NSLog(@"Error: %@", [error description]);
    
    0 讨论(0)
提交回复
热议问题