Loading *.aif in Minim
in
Core Library Questions
•
1 year ago
hello, after trying/failing to load a series of aiff files into an arraylist, i broke it down to a simpler example which will return the same error.
the sketch, with a file from the lot, http://dl.dropbox.com/u/16361890/avcloud/aiffMinim.zip
the file will play anywhere i try to, so i'm not sure if it's a problem with encoding, but doesn't seem so. any feedback welcome.
returns
==== JavaSound Minim Error ====
==== IOException: Resetting to invalid mark
Exception in thread "Animation Thread" java.lang.NullPointerException
at ddf.minim.javasound.JSMinim.getAudioRecordingStream(JSMinim.java:201)
at ddf.minim.Minim.loadFile(Minim.java:357)
at ddf.minim.Minim.loadFile(Minim.java:341)
at aiffMinim.setup(aiffMinim.java:30)
at processing.core.PApplet.handleDraw(PApplet.java:1608)
at processing.core.PApplet.run(PApplet.java:1530)
at java.lang.Thread.run(Thread.java:680)
the sketch, with a file from the lot, http://dl.dropbox.com/u/16361890/avcloud/aiffMinim.zip
the file will play anywhere i try to, so i'm not sure if it's a problem with encoding, but doesn't seem so. any feedback welcome.
- import ddf.minim.*;
- Minim minim;
- void setup() {
- size (200, 200);
- minim = new Minim(this);
- AudioPlayer aiffPlayer = minim.loadFile("1.aif");
- }
returns
==== JavaSound Minim Error ====
==== IOException: Resetting to invalid mark
Exception in thread "Animation Thread" java.lang.NullPointerException
at ddf.minim.javasound.JSMinim.getAudioRecordingStream(JSMinim.java:201)
at ddf.minim.Minim.loadFile(Minim.java:357)
at ddf.minim.Minim.loadFile(Minim.java:341)
at aiffMinim.setup(aiffMinim.java:30)
at processing.core.PApplet.handleDraw(PApplet.java:1608)
at processing.core.PApplet.run(PApplet.java:1530)
at java.lang.Thread.run(Thread.java:680)
1