How can I play sound in Java?
I wrote the following code that works fine. But I think it only works with .wav format.
I wrote the following code that works fine. But I think it only works with .wav format.
This is not a programming question. But I see many such questions here.. So i’m asking this question too.. I need to know the basic differences between mimetypes audio/mpeg and audio/x-mpeg. Thanks
The code of BigClip is shown on my answer to this question. It is necessary to compile it for your own use. There is no pre-built Jar you can add to the class-path. (OK, there is a pre-built Jar, but not that I am offering for others to use – brew your own).
I think we cannot open an mp3 file this way , like any regular text file. We have to use a codec , to actually play the mp3 file , or atleast use a library which has one. Do take a look at these places. How to play MP3 files in C? SDL Sound Mix … Read more
Is there any difference between M4A audio files and AAC audio files or are they exactly the same thing but with a different file extension?
Look for “binary to base64” or “file to base64”. For example, this tool. Then precede raw base64 result with data:audio/mpeg;base64,