5 static int au_callback(void *buffer, int size, void *cls);
7 /* defined in sndsamples.s */
8 extern signed char snd_click[];
9 extern int snd_click_size;
11 int main(int argc, char **argv)
14 audio_set_callback(au_callback, 0);
21 /* snd_click_size is < 65536 so we can just throw it all at once in there */
22 static int au_callback(void *buffer, int size, void *cls)
25 signed char *ptr = buffer;
26 signed char *src = snd_click;
28 for(i=0; i<size; i++) {
36 /*memcpy(buffer, snd_click, snd_click_size);*/
38 for(i=0; i<snd_click_size; i++) {
42 return snd_click_size;