How To Get Supported Audio Formats?
If I have a particular Mixer how do I get the supported Audio Formats
for every line?
I know DataLine.Info has a getFormats() method.
How do I get a DataLine.Info from a Line?
I know how to get the Source and Target Lines and they subinterface
DataLine, I just dont know how to get the DataLine.Info from DataLine.
Thanks a lot!
# 1
The [url=http://www.jsresources.org/faq_audio.html#supported_formats]Java Sound Resources FAQ[/url] has a solution. In fact it contains most information that you could want to know about sound in Java.
Beware that, on Windows at least, Java is not actually capable of determining what formats are supported, [url=http://forum.java.sun.com/thread.jspa?threadID=771385]as I discovered before[/url].
# 2
Mr Evil, thanks a lot! That was very helpful.
Your code is going to help me quite a bit when I get to 24 bit audio.
I love that JSR page. I did miss that relevant FAQ question though.
Instead of checking for instanceOf i was casting within a try catch.
It should work now.
>> Is there anyone alive in this forum?
>> I'm guessing that sound is not a popular application for Java.
That was funny. I feel your pain.
I cant wait to get out of the nuts and bolts of java sound so i can
move on to the actual DSP fun : )