Why does Minim AudioPlayer sound choppy?
in
Core Library Questions
•
2 years ago
Hi, I am trying to play an mp3 using the Minim library. It plays sound but it is extremely choppy and grainy sounding, almost to the point of unrecognition. This happens even with the most basic setup:
- import ddf.minim.*;
- Minim minim;
- AudioPlayer player;
- void setup(){
- size(500,500);
- }
- void draw(){
- minim = new Minim(this);
- String song_location = "song.mp3";
- player = minim.loadFile(song_location);
- player.play();
- }
- void stop(){
- player.close();
- minim.stop();
- super.stop();
- }
More Information:
I've tried it on both Processing 1.2.1 and 1.5.1 with the same results. Also, I'm running processing on 64 bit Linux Mint. I have openJDK Java 6 and Sun Java 6 on my computer but I'm not sure if Processing is using one of those or a built in version.
Any help clearing this up would be greatly appreciated, thanks.
2