Sound improvements - test yourself

I imported most of the games from the mbed site, an cloned the Hello World as a base for my own coding.
If i would update the clone(it seems to still be linked) i would lose all changes i did in the Main.cpp.
Is it enough if i copy the pokitto lib over to my own project ? Or is there a other way to just update the library contained in my own project ?

1 Like

Go on top of the PokittoLib folder icon in the project tree (of your own project), right click and “update”

Thats it!

2 Likes

nice, thanks

1 Like

Could be possibile to add to the library a method that read from a const byte[] variable? So to embed sounds in flash memory?

As example

const uint8_t sound []=
{
   127,128,128,128,128,127,128,128,128,128,128,128,127,128,127,127,127,127,
126,127,127,127,126,127,126,127,127,127,127,127,127,128,127,127,127,
127,128,128,129,129,129,129,129,129,128,128,129,128,128,128,128,127,
128,129,127,127,127,127,126,125,125,126,126,126,126,126,126,126,126,
127,127,127,126,127,126,126,128,128,129,129,129,129,129,129,129,130,
131,129,129,127,128,128,128,129,129,127,128,127,127,128,125,127,126,
126,125,126,126,125,125,126,128,128,127,129,128,128,127,129,130,129,
128,127,127,127,129,127,130,132,130,132,129,130,128,128,129,127,127,
128,126,124,122,122,125,126,128,128,126,126,127,127,128,129,123,129,
128,126,129,129,127,129,127,129,128,127,130,126,128,129,128,128,130,
127,129,126,128,129,129,129,128,128,126,125,125,128,127,124,125,125,
121,122,122,124,127,127,124,127,127,125,129,133,132,131,130,132,129,
129,134,132,130,135,130,127,126,127,125,127,125,126,126,125,124,124,
122,124,125,124,124,125,127,125,125,125,125,125,127,129,129,130,130,
131,129,126,130,129,130,133,135,137,135,135,132,131,129,129,126,128,
128,129,129,128,126,125,122,122,122,122,121,122,125,122,124,124,125,
125,126,127,127,129,130,130,128,130,129,131,131,132,133,135,133,135,
132,131,129,131,130,129,128,127,126,127,126,128,125,125,124,124,123,
123,122,122,124,125,124,123,124,125,129,126,127,129,127,129,130,130,
131,132,132,132,130,132,130,131,135,134,133,132,128,128,126,127,130,
128,127,124,127,125,122,123,125,122,123,124,123,125,122,126,127,126,
130,130,130,134,126,129,128,134,130,127,125,130,128,127,131,136,134,
134,133,132,130,127,128,125,124,130,126,124,121,119,123,122,126,128,
122,124,130,126,125,132,127,127,129,128,133,132,130,129,129,130,129,
130,126,127,129,131,134,126,133,132,130,129,122,130,131,129,127,125,
125,129,122,124,124,123,119,122,117,119,117,123,123,124,126,126,125,
128,131,130,135,136,136,133,133,144,134,131,142,132,128,128,126,124,
129,124,125,127,121,119,120,118,118,125,123,123,121,123,121,122,121,
123,122,127,128,131,132,132,131,132,130,128,133,137,140,141,140,142,
137,134,132,130,129,128,127,127,128,128,127,125,122,120,117,117,117,
117,118,121,123,123,123,120,126,125,129,129,132,130,133,132,132,133,
135,133,136,138,138,138,139,135,132,131,130,129,131,127,126,123,123,
124,123,123,122,121,120,119,120,117,118,122,121,125,122,123,126,126,
130,130,130,130,132,134,135,134,135,135,136,137,129,131,130,135,134,
131,133,129,122,125,127,129,126,126,123,123,117,120,121,120,120,123,
126,120,120,124,131,124,128,135,135,130,134,128,136,131,131,130,137,
133,129,129,133,138,139,135,137,133,134,127,119,121,126,121,129,119,
116,115,116,129,121,120,128,124,127,129,127,128,131,128,130,129,134,
135,131,130,128,134,131,127,131,129,131,130,133,131,128,134,126,134,
127,128,128,124,122,124,119,123,122,120,121,105,121,116,118,116,123,
116,124,123,125,130,133,138,135,130,136,136,143,134,144,147,136,138,
136,125,126,127,120,124,120,123,120,122,113,113,112,117,116,124,119,
119,125,117,118,123,123,125,128,133,134,134,135,134,132,135,133,138,
139,144,150,140,141,139,138,131,129,127,127,123,131,124,125,123,119,
119,113,113,114,110,113,115,114,119,122,123,125,122,131,131,132,134,
138,139,139,138,137,139,139,144,141,141,142,140,136,132,129,128,130,
124,125,123,122,120,120,116,120,118,117,114,111,114,117,117,120,121,
127,128,126,129,132,134,135,136,137,139,139,140,138,139,139,144,136,
133,132,130,129,129,126,125,118,118,122,116,122,124,124,123,115,111,
119,116,119,122,124,122,127,132,128,124,141,151,137,134,133,141,134,
131,128,137,134,137,128,131,133,134,132,129,135,138,131,118,114,109,
115,124,116,112,107,118,130,116,120,123,126,131,133,142,134,136,135,
135,136,126,141,137,125,134,137,133,132,128,119,134,136,122,132,129,
133,123,117,125,130,127,124,119,114,124,116,123,119,115,114,114,111,
109,116,126,129,120,125,132,129,142,144,153,142,146,137,144,145,137,
};
1 Like

Trivially easy actually.

At the moment, I am filing tax returns forms for Pokitto ltd (must be done by today, its 1 am !!).

But, I am almost done with a new music player for Pokitto using the new sound code and the new SDFileSystem libs as a demo. So we will get to this actually pretty soon.

4 Likes

Did this ever happen?

Yes. I paid my taxes.

Lol :wink:

Yeyayeayayeayea… lemme try to remember.

Wavplayer did work with SDFileSystem

I’ll try to add it to examples

1 Like

I meant specifically @HomineLudens question about playing a byte array?