This content has been marked as final. Show 2 replies
I'd recommend reading the following article...
It has some sample code that displays everything available for you to use on a system. I'd recommend running that and seeing what peices the JVM is actually giving you to work with, rather than reading about what someone thinks it should / might do... Always better to actually see what you have to work with.
Hi, and thanks for your reply,
Running the code on the page outputed a list of system-specific mixers (2 microphones, Realtek mixers, etc.), and "Java Sound Audio Engine," which only has SourceDataLine's and clips.
What if i ran the code sample on a computer that had absolutely no sound-related hardware though? I assume the output would only contain "Java Sound Audio Engine." Should i conclude that there's nothing in the implementation of Java Sound that would let me read audio data from a file, play around with it (in the same way a Mixer can modify the audio data it receives for playback, for example), and place the result in a new file?
I guess it all comes down to knowing if there's a way to modify audio data without sending it to a Mixer for playback and to somehow get the modified audio data back. I'm assuming it would be done in the same way you'd send data to a Mixer for playback, except that instead of rendering the data as sound through whatever hardware the Mixer represents, the Mixer would send it back to the application through TargetDataLine's, but I get the feeling i may be completely wrong and that it's possibly why i haven't found any information about it so far. Does anyone have any idea?
Thanks for your time!