6 static int au_callback(void *buffer, int size, void *cls);
8 /* defined in ausamples.s */
9 extern signed char snd_click[];
10 extern int snd_click_size;
12 int main(int argc, char **argv)
15 audio_set_callback(au_callback, 0);
22 /* snd_click_size is < 65536 so we can just throw it all at once in there */
23 static int au_callback(void *buffer, int size, void *cls)
25 memcpy(buffer, snd_click, snd_click_size);
26 return snd_click_size;