| Language \ Environment \ Comparison |

| Index

| The Processing 1.0 _ALPHA_ Reference is a work in progress. If you see any errors or have any comments, please write to: reas at groupc.net

Name |  | ### play()
Examples |  |
    BSound laugh;
    void setup() {
      laugh = loadSound("laughing.wav");
      play(laugh);
    }
    BSound count;
    void setup() {
      count = loadSound("123.wav");
      play(count, 1000, 2000);
    }
Description |  | Starts to playback a BSound or BVideo object. Once the playback reaches the end of the sound, the playback stops. The start and end parameters are used to define from which sample or frame the playback should start, and at which it should end. If the object is currently playing, calling play() will not restart.
Syntax |  |
    play(object)
    play(object, start, end)
Parameters |  |
object |  | BSound or BVideo: the object to be played
start |  | int: starting position
end |  | int: position to end playback
Usage |  | Web & Application
Related |  | repeat() pause() stop()

| © 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |