sound

sound()


Description

Play sound


Syntax
sound(s

Parameters
  s : filename of sound (mp3)
  location of file :  <Gallery -- Downloads>  in your smart phone

Usages

sound( )



Examples in arduino

#include "AppGosu.h"
AppGosu app;


void  setup() {

     app.start();
     app.clearAll();


    app.textSize(50);
    app.fill(255,255,255);
    app.text("--- sound ---", 60, 50);
   
    app.sound("music.mp3");
    app.text("play sound...", 50, 200);
    delay(5000);
    app.stopSound();
    app.text("Stop.", 50, 350);
}

void loop() {


}




Examples in other MCU (AVR, PIC, MSP430)

printf("
sound('filename.mp3');");


















from AppGosu
-----------------------------------------









No comments: