mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Removed Sound class, added Engine + Audio Device. No need to start a stream anymore.
This commit is contained in:
@@ -5,16 +5,12 @@ This is a sound file player.
|
||||
|
||||
import processing.sound.*;
|
||||
|
||||
Sound stream;
|
||||
SoundFile soundfile;
|
||||
|
||||
void setup() {
|
||||
size(640,360);
|
||||
background(255);
|
||||
|
||||
// Create and start the sound renderer
|
||||
stream = new Sound(this);
|
||||
|
||||
|
||||
//Load a soundfile
|
||||
soundfile = new SoundFile(this, "vibraphon.aiff");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user