我开发了一个播放Sound的iPhone应用程序。
但是,当我在模拟器中播放声音时,控制台会显示下面的行(also shown in this screenshot)。
[12:07:07.505 <0xb0185000>] could not find audio decoder component 64766938 for registration
[12:07:07.506 <0xb0185000>] could not find audio decoder component 6D730011 for registration
[12:07:07.514 <0xb0185000>] could not find audio decoder component 696C6263 for registration
[12:07:07.514 <0xb0185000>] could not find audio decoder component 6D730031 for registration
[12:07:07.515 <0xb0185000>] could not find audio decoder component 696C6263 for registration
有什么问题?
答案 0 :(得分:0)
如何加载文件,以及如何将文件添加到应用程序中?
如果您将声音文件包含在应用程序的包中,可能会因为您错误地加载资源而导致此错误。
如果是这种情况,这是您要检索声音文件的代码:
NSString *resPath = [[NSBundle mainBundle] pathForResource:kMySoundFileName ofType:kMySoundFileNameExtension inDirectory:@""];