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

Processing Sound - Windows 7 Support

$
0
0

I wrote this really simple sketch on my macbook after installing the processing.sound library. it works exactly as it should ( moving the mouse along the horizontal axis I can control the speed of reproduction of the audio file )

When I tried to run this very same example on my windows 7 pro machine I got no audio and the following error in the console : "cannot free root node 0".

Help please?

    import processing.sound.*;
    SoundFile file;
    
    void setup() {
      size(640, 360);
      background(255);
        
      // Load a soundfile from the data folder of the sketch and play it
      file = new SoundFile(this, "sample_m.mp3");
      file.loop();
      file.rate(1);
    }      
    
    void draw() {
    }
    
    void mouseMoved() {
      float value = (float)mouseX/width * 2;
      println(value);
      file.rate(value);
      
    }

Viewing all articles
Browse latest Browse all 2896

Trending Articles