Audio 我应该使用什么内容类型的.cfa声音文件来播放j2me?
我使用以下代码在j2me中播放声音文件Audio 我应该使用什么内容类型的.cfa声音文件来播放j2me?,audio,java-me,audioformat,Audio,Java Me,Audioformat,我使用以下代码在j2me中播放声音文件 try { String ctype_1 = "audio/x-wav";// #LINE 1 temp = Manager.createPlayer(this.getClass().getResourceAsStream(audioFileString),ctype_1 ); if(temp != null){ temp.setLoopC
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);
}
在注释//#第1行,我们必须给出内容类型(在这里,类型是用于.wav文件)
我的问题是,我应该为声音文件.caf扩展名提供什么内容类型 Java ME不支持AFAIK.cfa文件。通读这些文章,