j2meでサウンドファイルを再生するために次のコードを使用しています
try
{
String ctype_1 = "audio/x-wav";// #LINE 1
temp = Manager.createPlayer(this.getClass().getResourceAsStream(audioFileString),ctype_1 );
if(temp != null){
temp.setLoopCount(1);
temp.realize();
temp.prefetch() ;
return temp;
}
}
catch(Exception ex)
{
ex.printStackTrace();
System.out.println("MediaException in my sound ==>"+ex);
}
コメント // #LINE 1 でコンテンツ タイプを指定する必要があります (この場合、タイプは .wav ファイル用です)
私の質問は、サウンド ファイルの .caf 拡張子にどのようなコンテンツ タイプを与えるべきかということです。