Adding sound to halftone.

This commit is contained in:
Pere Pujal i Carabantes 2016-09-27 22:13:39 +00:00
parent f61d808d7c
commit 7479c2a757
2 changed files with 1 additions and 4 deletions

BIN
magic/sounds/halftone.wav Normal file

Binary file not shown.

View file

@ -89,13 +89,12 @@ int halftone_init(magic_api * api)
"%s/sounds/magic/%s",
api->data_directory, snd_filenames[i]);
/* FIXME snd_effect[i] = Mix_LoadWAV(fname);
snd_effect[i] = Mix_LoadWAV(fname);
if (snd_effect[i] == NULL) {
SDL_FreeSurface(canvas_backup);
SDL_FreeSurface(square);
return(0);
}
*/
}
@ -182,11 +181,9 @@ void halftone_drag(magic_api * api, int which, SDL_Surface * canvas,
update_rect->w = (x + 16) - update_rect->x;
update_rect->h = (y + 16) - update_rect->h;
/* FIXME
api->playsound(snd_effect[which],
(x * 255) / canvas->w, // pan
255); // distance
*/
}
enum {