|
Post by tftlcdcyg on Oct 27, 2017 20:46:56 GMT -8
James, Do you have a tutorial to get files like mesmeriz.ima?
I look forward to your comments.
Best Regards! TFTLCDCyg
|
|
|
Post by jamesbowman on Oct 28, 2017 8:50:03 GMT -8
|
|
|
Post by tftlcdcyg on Oct 28, 2017 22:33:36 GMT -8
You did it again, thank you James! Then this is the utility: SoX - Sound eXchange
This is my first approach to an ima-player
#include <GD3USDIO.h>
char GrupoAudio[4][15]={"mesmeriz.ima","diff.ima","made.ima", "Beautifu.ima"}; int IDAudio=0;
static Streamer stream;
void setup() { GD.begin(); Playing(); } void loop(){}
void Playing() { LoadAudio(); while(1) { GD.get_inputs(); GD.cmd_gradient(0, 40, 0x282830, 0, 272, 0x606040); GD.Tag(1); GD.cmd_text(240, 100, 31, OPT_CENTER, GrupoAudio[IDAudio]); GD.Tag(255); uint16_t val, range; stream.progress(val, range); if (val>=range) {IDAudio=IDAudio+1; if(IDAudio>=4){IDAudio=0;} LoadAudio(); }
GD.cmd_slider(30, 160, 420, 8, 0, val, range); GD.printNfloat(325, 180, val, 0, 29);
GD.cmd_text(360, 180, 29, 0, "/"); GD.printNfloat(450, 180, range, 0, 29);
if (GD.inputs.tag==1) { delay(75); IDAudio=IDAudio+1; if(IDAudio>=4){IDAudio=0;} LoadAudio(); } GD.swap(); GD.finish(); stream.feed(); } }
void LoadAudio() { stream.begin(GrupoAudio[IDAudio]); } PD: some file has it origin on audio files with copyright, for this reason and for avoid any trouble, I can send the zip only through message private, of course for test purposes
|
|