I convert .mp3 to byte[];how can I use this byte[] to play sound

thanks

You can use the JMF (Java Media F-something) to play mp3 files, but I'm not sure if they allow you to play it directly from a byte[]. If the byte[] is in mp3 format, you would need to decompress the soundstream and then use javax.sound.* package to play it. I don't know if JMF allows you to just decompress the mp3, or if it's limited to just playing a file, better have a look there.

Similar Messages

Maybe you are looking for