im making a game for school, were using html css and js but only coding in the index.java file. i want to play a music mp3 file as background music so i went into a seperate repl to test the code for the music. i looked up help online and asked my teacher to try to get it to work but we have gotten absolutely nothing to work and idk what im doing wrong. here is my code:
import ddf.minim.*;
Minim minim;
AudioPlayer music;
void setup(){
minim = new Minim(this);
music = minim.loadFile(“virtualinsanity.mp3”);
music.play();
}
ive also tried this:
import processing.sound.*;
SoundFile music;
void setup(){
music = new SoundFile(this, “virtualinsanity.mp3”);
music.play();
}
ive tried converting the file to wav and aiff and triple checked if im spelling the file name right but i keep on getting a null error.