Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

playing a sound file on a mac 10.6.8 with processing 2.01

$
0
0
This seems as simple as I can find. The file does not play. All I get is a snippet of sound and it stops.Like one drum beat or maybe 3 drum beats.  It is not always the same sound when I hit play. player.length says 313.
My hope was that processing would play the whole thing. Any suggestion as to what might be the problem?

import ddf.minim.*;

Minim minim;
AudioPlayer player;

void setup()
{
size(100, 100); // drawing size
minim = new Minim(this);
player = minim.loadFile("Handdrum1.mp3",2048); //use an mp3 file
player.play();
}

void draw()
{
}

void stop()
{
player.close();
minim.stop();
super.stop();
}



Viewing all articles
Browse latest Browse all 1768

Trending Articles