Hi,
I'm trying to add a .wav file to my application. Why can't I hear anything?
- import ddf.minim.*;
- Minim minim;
- PImage img1,img2;
- void setup() {
- // Images must be in the "data" directory to load correctly
- img1 = loadImage("splash.jpg");
- size(640,480);
- minim = new Minim(this);
- minim.loadSample("fuel.wav"); //sound file
- }
- void draw() {
- if(millis()<5000)
- {
- image(img1, 0, 0);
- }
- else{
- img2 = loadImage("gamescreen.jpg");
- image(img2,0,0);
- //rest of code
- }
- }
- void stop() {
- minim.stop();
- super.stop();
- }