topical media & game development

talk show tell print

graphic-processing-learning-20-example-20-1-example-20-1.pde / pde



  // Learning Processing
  // Daniel Shiffman
  // http://www.learningprocessing.com
  
  // Example 20-1: Simple sound with video library
  
  import processing.video.*;
  
  Movie movie;
  
  void setup() {
    size(200, 200);
    movie = new Movie (this, "dingdong.wav");
  }
  
  void draw() {
    
    background(0);
    noLoop();
  }
  
  void mousePressed() {
    movie.stop();
    movie.play();
  }
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.