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

Re : Minim- "Unexpected token: \"

$
0
0
It's not the library that shipped with Processing. I looked it up and it said you had to use this program to play sound, so that's what I did. 

[snip java]
import ddf.minim.*;

Minim minim;
AudioPlayer song;

void setup()
{
size(100, 100);

minim = new Minim(this);

// this loads mysong.wav from the data folder
song = minim.loadFile(“music.mp3”);
song.play();
}

void draw()
{
background(0);
}

void stop()
{
song.close();
minim.stop();

super.stop();
}
[/snip]

This is just the basic one I used to see what the heck was going on.

Viewing all articles
Browse latest Browse all 1768

Trending Articles