Audio.play - HermesPasser/Ramu GitHub Wiki

Audio.play(startAt = 0)

Parameters

  • float startAt: Where in the audio will begin. (optional, default is 0)

Description

Play the audio.

You can test this snippet of code here.

let symphony5 = new Ramu.Audio("https://upload.wikimedia.org/wikipedia/commons/a/ae/Wolfgang_Amadeus_Mozart_-_Klarinettenkonzert_A-Dur_-_3._Rondo_%28Allegro%29.ogg");
symphony5.play();

See also Audio.pause, Audio.resume and Audio.stop.