How can i read an AudioInputStream upto a particular number of bytes/microsecond position ?
For example :
AudioInputStream ais = AudioSystem.getAudioInputStream( new File("file.wav") );
// let the file.wav be of y bytes
Now i want to obtain an AudioInputStream that has data upto some x bytes where x < y bytes.
How can i do that ?
I have been thinking hard but haven’t got any method to do that ?
The code below shows you how to copy a part of an audio stream, reading from one file and writing to another.