Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Error message when using Minim

$
0
0

Hello,

I'm writing a program that has a sound effect play when an image pops up on screen. The code appears to be working but I get the following error message in my command window at the bottom of the IDE.

==== JavaSound Minim Error ====
==== Don't know the ID3 code PRIV

What exactly is causing this error? Here is my code. Thanks in advance for any help.

import java.io.*;
import ddf.minim.*;

Minim minim;
AudioPlayer tick;

String codeword;
PImage [] bground;

int i = 0;  //This variabe will be used to change the background images
int k = 0;  //This variable loads in the different images
int n = 4;  //The number of images for the background that we need
long bgroundtimer = 0;

void setup(){
  size(700, 500);
  background(0);
  bground = new PImage[n];
  for(k = 0; k < bground.length; k++){
    bground[k] = loadImage("C:/Users/Steven/Documents/Processing/My Saves/Word_Clock_Final/Background/bground" + k + ".png");
  }
  minim = new Minim(this);
  tick = minim.loadFile("C:/Steven/Processing/Tick.mp3");
}

void draw(){
   if(i < bground.length){
     image(bground[i], 0, 0);
     if(millis() - bgroundtimer >= 5000){
       bgroundtimer = millis();
       tick.play();
       tick.rewind();
       i++;
    }
  }
}

Viewing all articles
Browse latest Browse all 2896

Trending Articles