I'm making an audio player in java,a small code snippet that runs .wav files is:
AudioInputStream ais = AudioSystem.getAudioInputStream(new File("C:\\path\\c4.wav").getAbsoluteFile());
Clip clip = AudioSystem.getClip();
clip.open(ais);
clip.start();
I want to know some things about java sounds
First,what is the use of mixers,lines,ports in java sounds.
Second,how to include other formats such as mp2,mp3...or is there a general method to include any format.
Third,how to add volume control.
Fourth,I am making this player in Net Beans so how to use slider for volume control and as seek bar.
...and I want to make the audio player using the basic java sound api,I'm reading tutorial from http://docs.oracle.com/javase/tutorial/sound/TOC.html so please don't give solutions having javafx or other media files included...