我应该使用什么内容类型与 .cfa 声音文件一起使用 j2me 播放?
我使用以下代码在 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 扩展名。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AFAIK .cfa 文件不受 Java ME 支持。浏览这些文章,
MMAPI for Java ME
在 Java ME 中查找音频格式
AFAIK .cfa file isn't supported by Java ME. Go through these articles,
MMAPI for Java ME
Finding audio format in Java ME