Smooth magic tool sound effect

CC-BY 4.0 by https://freesound.org/people/PercyFrench/
This commit is contained in:
Bill Kendrick 2023-05-22 23:56:41 -07:00
parent 5e24fb3742
commit 375207f3d3
4 changed files with 10 additions and 6 deletions

View file

@ -47,7 +47,7 @@ enum {
};
char * smooth_snd_fnames[NUM_TOOLS] = {
"rainbow.ogg", // FIXME
"smooth.ogg",
"squiggles.ogg",
"loops.ogg",
};
@ -318,8 +318,6 @@ void smooth_click(magic_api * api,
smooth_squiggle_rad = LOOP_RAD_CALC;
smooth_drag(api, which, canvas, last, x, y, x, y, update_rect);
}
api->playsound(smooth_snds[which], (x * 255) / canvas->w, 255);
}
@ -373,7 +371,7 @@ void smooth_release(magic_api * api,
}
}
api->playsound(smooth_snds[which], (x * 255) / canvas->w, 255);
api->stopsound();
update_rect->x = 0;
update_rect->y = 0;