I need help with the background music

Hello, so I made a game but the background music isn’t working.( I’ve only copied the sound problem tho) I’ve used another sound before and it works perfectly fine but the background music won’t work. If I play my programm I get this error:
JavaSound Minim Error
javax.sound.sampled.UnsupportedAudioFileException: not a MPEG stream: javax.sound.sampled.UnsupportedAudioFileException: Unable to read mp3 header
Minim Error
Couldn’t load the file hintergrundMusik.mp3
Could not run the sketch (Target VM failed to initialize).
Can someone help me please? + I kinda want the music to be a loop since it’s in the background and therefor infinite.

import processing.sound.;
SoundFile click;
import ddf.minim.
Minim minim;
AudioPlayer music;
void setup() {
size(800, 600);
click= new SoundFile(this, “clickSound.mp3”);
minim = new Minim(this);
music = minim.loadFile(“hintergrundMusik.mp3”);
void draw() {
void mousePressed() { //Kreise klicken

As far as I know minim doesn’t work anymore in general.

You might want to look into the examples of processing.sound
there should be something about playing sound files.

I tried a few examples and it works with Processing 4.0b8 and W10 Pro.



Try the examples that come with the Minim library:


Please format your code as per the instructions here:
Try to cut and paste your code and run it and you will see why it is important to format and post code correctly.
It helps us help you.

Try another sound file to see if that is the issue; I sometimes have a sound file that simply will not work.