+ FILE *fp;
+
+ if(!(fp = fopen("click.pcm", "rb"))) {
+ fprintf(stderr, "failed to open click.pcm\n");
+ return 1;
+ }
+ fseek(fp, 0, SEEK_END);
+ snd_click_size = ftell(fp);
+ rewind(fp);
+ if(!(snd_click = malloc(snd_click_size))) {
+ fprintf(stderr, "failed to allocate sound sample\n");
+ return 1;
+ }
+ fread(snd_click, 1, snd_click_size, fp);
+ fclose(fp);
+