2009-03-13 8 views
0

Soundを再生するiPhoneアプリケーションを開発しました。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

サウンドファイルがどのような形式である:その場合は

、これはあなたがサウンドファイルを取得するコードはありますか?私たちに再生コードを表示 – CVertex

+0

.WAVと.CAFサウンドファイルを使用しました。 – Nasir

答えて

0

どのようにファイルをロードしていますか、どのようにファイルをアプリケーションに追加していますか?

アプリケーションのバンドルにサウンドファイルを含める場合は、リソースを誤ってロードしているためにこのエラーが発生する可能性があります。

NSString *resPath = [[NSBundle mainBundle] pathForResource:kMySoundFileName ofType:kMySoundFileNameExtension inDirectory:@""];

+0

私はこのコードを使用しました: NSString * path = [[NSBundle mainBundle] pathForResource:soundName ofType:type]; – Nasir

関連する問題