Getting a song to play with the help of minim
in
Core Library Questions
•
11 months ago
Okay so I have minim and the song (named song.mp3) both in the data file of this sketch, yet when I run it the window pops up but the song doesn't play, and I get this message:
==== JavaSound Minim Error ====
==== Don't know the ID3 code TXXX
==== JavaSound Minim Error ====
==== Don't know the ID3 code TXXX
==== JavaSound Minim Error ====
==== Don't know the ID3 code TXXX
==== JavaSound Minim Error ====
==== Don't know the ID3 code TDEN
==== JavaSound Minim Error ====
==== Don't know the ID3 code TSSE
==== JavaSound Minim Error ====
==== Don't know the ID3 code APIC
I'm not sure if I'm doing something wrong or what's happening, but here's my full code, maybe the problem's in there? I'm super new to processing and I'm not sure. Any help would be appreciated :D.
import ddf.minim.*;
import ddf.minim.signals.*;
import ddf.minim.analysis.*;
import ddf.minim.effects.*;
Minim minim;
AudioPlayer player;
AudioInput input;
void setup()
{
size(100, 100);
minim = new Minim(this);
player = minim.loadFile("song.mp3");
input = minim.getLineIn();
}
void draw()
{
}
void stop()
{
player.close();
input.close();
minim.stop();
super.stop();
}
1