I tried to test sound file but there is no respond. Can some one tell me the reason. The music.play become yellow and the following error is on consol: NullPointerException
Here is the code:
import processing.sound.*;
SoundFile music;
void setup() {
size(400, 400);
music = new SoundFile(this, “music.mp3”);
music.play();
}
Please help us help you by formatting your code on this forum. Formatted code is not only easier to read, it sometimes cannot be cut-pasted and run correctly if not formatted, making it difficult for others to help you.