Adding sound to halftone.
This commit is contained in:
parent
f61d808d7c
commit
7479c2a757
2 changed files with 1 additions and 4 deletions
BIN
magic/sounds/halftone.wav
Normal file
BIN
magic/sounds/halftone.wav
Normal file
Binary file not shown.
|
|
@ -89,13 +89,12 @@ int halftone_init(magic_api * api)
|
||||||
"%s/sounds/magic/%s",
|
"%s/sounds/magic/%s",
|
||||||
api->data_directory, snd_filenames[i]);
|
api->data_directory, snd_filenames[i]);
|
||||||
|
|
||||||
/* FIXME snd_effect[i] = Mix_LoadWAV(fname);
|
snd_effect[i] = Mix_LoadWAV(fname);
|
||||||
if (snd_effect[i] == NULL) {
|
if (snd_effect[i] == NULL) {
|
||||||
SDL_FreeSurface(canvas_backup);
|
SDL_FreeSurface(canvas_backup);
|
||||||
SDL_FreeSurface(square);
|
SDL_FreeSurface(square);
|
||||||
return(0);
|
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->w = (x + 16) - update_rect->x;
|
||||||
update_rect->h = (y + 16) - update_rect->h;
|
update_rect->h = (y + 16) - update_rect->h;
|
||||||
|
|
||||||
/* FIXME
|
|
||||||
api->playsound(snd_effect[which],
|
api->playsound(snd_effect[which],
|
||||||
(x * 255) / canvas->w, // pan
|
(x * 255) / canvas->w, // pan
|
||||||
255); // distance
|
255); // distance
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue