简体   繁体   English

如何使用FMJ播放mp3?

[英]How to play mp3 with FMJ?

I read in the API, but still not found out how to play a mp3. 我读过API,但仍然找不到如何播放mp3。 I have not found any tutorials... 我还没有找到任何教程...

Can someone tell me how to use FMJ ? 有人可以告诉我如何使用FMJ吗? Or give me some tutorial links? 还是给我一些教程链接?

Thank you 谢谢

If you can figure how to play a sound file using Java Sound (avoid Clip(1)), then it is possible to play MP3 files by adding the JMF based mp3plugin.jar to the run-time class-path of the application. 如果可以弄清楚如何使用Java Sound(避免Clip(1))播放声音文件,则可以通过将基于JMF的mp3plugin.jar添加到应用程序的运行时类路径来播放MP3文件。

  1. Clip is fine for small sound samples, but is has a limit of just 2 seconds of 16 bit stereo, 44.1 KHz sound, on most Sun JREs. Clip适用于小型声音样本,但在大多数Sun JRE上,其16位立体声,44.1 KHz声音的限制仅为2秒。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM