Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 941

Play Sound in android

$
0
0

`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 back file = new SoundFile(this, "sample.mp3"); file.play(); }

void draw() { }`

it doesn't work in android HELP! ASAP


Viewing all articles
Browse latest Browse all 941

Trending Articles