Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play from memory #1

Open
alexandre-goretti opened this issue Sep 9, 2015 · 1 comment
Open

Play from memory #1

alexandre-goretti opened this issue Sep 9, 2015 · 1 comment

Comments

@alexandre-goretti
Copy link

I need to play a MP3 that comes from a byte[].

I got an error when I tryed that:

javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input stream

@hendriks73
Copy link
Owner

I assume you wrap the byte array into a ByteArrayInputStream?
Decoding from arbitrary streams is currently not supported.
Try dumping the byte array to a file with the extension .mp3 and then open that using AudioSystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants