Trying to find a way to make java's sound API accept 24 bit audio files and files with more than 2 channels

102 Views Asked by At

I've been working on a spectrum analyzer this summer and I just bumped into an annoying problem. Playing sounds is a pretty important part of my project and I just learned that the java sound API (javax.sound.sampled package) is incompatible with sound files with more than 2 channels or 16 bits samples.

I've looked online and learned that it is a known issue, but I've had no luck figuring out a way to fix the problem. I guess I could convert the files to 16 bits stereo, but if I can avoid it, I'd love to.

Thank you for your help!

0

There are 0 best solutions below