Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Playing wav file causes error

$
0
0

Hello everyone,

I'm trying to program a little audio player using minim which needs to read big files. The loading does work but the play or loop method causes an error when executing the processing file with the big audio file (about 300 mb).

java.lang.ArrayIndexOutOfBoundsException: 15 at javazoom.jl.decoder.LayerIDecoder$SubbandLayer1Stereo.read_allocation(LayerIDecoder.java:396) at javazoom.jl.decoder.LayerIDecoder.readAllocation(LayerIDecoder.java:108) at javazoom.jl.decoder.LayerIDecoder.decodeFrame(LayerIDecoder.java:72) at javazoom.jl.decoder.Decoder.decodeFrame(Decoder.java:147) at javazoom.spi.mpeg.sampled.convert.DecodedMpegAudioInputStream.execute(Unknown Source) at org.tritonus.share.TCircularBuffer.read(TCircularBuffer.java:134) at org.tritonus.share.sampled.convert.TAsynchronousFilteredAudioInputStream.read(TAsynchronousFilteredAudioInputStream.java:189) at ddf.minim.javasound.JSBaseAudioRecordingStream.readBytesWrap(JSBaseAudioRecordingStream.java:305) at ddf.minim.javasound.JSBaseAudioRecordingStream.readBytesLoop(JSBaseAudioRecordingStream.java:287) at ddf.minim.javasound.JSBaseAudioRecordingStream.mRead(JSBaseAudioRecordingStream.java:701) at ddf.minim.javasound.JSBaseAudioRecordingStream.read(JSBaseAudioRecordingStream.java:680) at ddf.minim.javasound.JSAudioOutput.readStream(JSAudioOutput.java:125) at ddf.minim.javasound.JSAudioOutput.run(JSAudioOutput.java:74)

Does anyone know what the problem is?

I tried my player also with the same file as mp3. This works but when I want to cue some seconds back it needs a lot of time. It is extreme when I want to go to the mid or end of the file. Can anyone explain how minim works?

Thank you very much in advance for your help.


Viewing all articles
Browse latest Browse all 2896

Trending Articles