本文介绍了OSStatus错误1718449215的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个iPhone应用程序来录制我们的声音。当我尝试录制时,我收到以下声明中的错误消息。

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


recorder = [[ AVAudioRecorder alloc] initWithURL:url settings:recordSetting error:&err];

错误域= NSOSStatusErrorDomain代码= 1718449215操作无法完成。(OSStatus错误1718449215.)

Error Domain=NSOSStatusErrorDomain Code=1718449215 "Operation could not be completed. (OSStatus error 1718449215.)"

如果我试图在.caf文件中录制,它运行正常。如果我尝试使用.m4a,我收到此错误消息。

If I tried to record in .caf file, it is working fine. If I tried with .m4a, I am getting this error message.

请帮我解决。

谢谢。

推荐答案

1718449215是 kAudioFormatUnsupportedDataFormatError 错误。

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]);

这篇关于OSStatus错误1718449215的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 21:07