Java Sound does not natively support MP3 playback. To enable MP3 playback, one can add the mp3plugin.jar library to the application's runtime classpath. The BigClip library, mentioned in the answer, extends the Clip class and allows for playback of audio data of arbitrary size, including MP3s. However, the BigClip library may have its own limitations and is not as widely used as some of the more popular audio libraries for Java, such as JLayer.
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3