Sounds for Kaleido-* magic tools

(Still need icons)
This commit is contained in:
Bill Kendrick 2023-03-08 00:35:01 -08:00
parent 673e4ffc37
commit 44c43c17d6
6 changed files with 25 additions and 6 deletions

View file

@ -158,12 +158,22 @@ June 17, 2002 - March 8, 2023
Creative Commons 0 License (CC0 1.0)
by Guy McPherson
Keep Color & Remove Colore sounds:
Keep Color & Remove Color sounds:
"Ethnic drums » ethnic beat6.wav" & "...7.wav"
(https://freesound.org/people/tootoos24/sounds/677558/ &
https://freesound.org/people/tootoos24/sounds/677559/)
Creative Commons 0 License (CC0 1.0) by Dmitry Lastovsky
Kaleido-4, -6, & -8 sounds:
"Xylophone chromatic descending passages improv"
(https://freesound.org/people/Ustym_Petrovych/sounds/668401/),
"Xylophone scale descent improv"
(https://freesound.org/people/Ustym_Petrovych/sounds/668395/),
and "Xylophone chromatic passages improv"
(https://freesound.org/people/Ustym_Petrovych/sounds/668399/)
Creative Commons Attribution 4.0 International (CC BY 4.0)
by https://freesound.org/people/Ustym_Petrovych/
Mouse accessibility code and keyboard access
Ankit Choudary <ankit.goaldecided@gmail.com>, as part of GSOC 2010,
with integration and fixes by Pere Pujal i Carabantes <pere@fornol.no-ip.org>

View file

@ -74,8 +74,11 @@ https://tuxpaint.org/
* [WIP] "Kaleido-4", "-6", and "-8" -- Kaleidoscopic lens effects.
Bill Kendrick <bill@newbreedsoftware.com>
(Sounds based on "Xylophone chromatic descending passages improv",
"Xylophone scale descent improv", & "Xylophone chromatic passages improv",
licensed as Creative Commons Attribution 4.0 International (CC BY 4.0)
by https://freesound.org/people/Ustym_Petrovych/)
- need icons
- need sound effects
* Improvements to Magic Tools:
----------------------------

BIN
magic/sounds/kaleido-4.ogg Normal file

Binary file not shown.

BIN
magic/sounds/kaleido-6.ogg Normal file

Binary file not shown.

BIN
magic/sounds/kaleido-8.ogg Normal file

Binary file not shown.

View file

@ -4,7 +4,7 @@
kaleidoscope.
Bill Kendrick
Last updated: March 7, 2023
Last updated: March 8, 2023
*/
#include <stdio.h>
@ -24,9 +24,9 @@ enum {
};
static char * kaleidoscope_lens_snd_filenames[NUM_TOOLS] = {
"kaleidoscope_lens.ogg", // FIXME
"kaleidoscope_lens.ogg", // FIXME
"kaleidoscope_lens.ogg", // FIXME
"kaleido-4.ogg",
"kaleido-6.ogg",
"kaleido-8.ogg",
};
static char * kaleidoscope_lens_icon_filenames[NUM_TOOLS] = {
@ -193,6 +193,10 @@ kaleidoscope_lens_drag(magic_api * api, int which, SDL_Surface * canvas,
SDL_Surface * snapshot, int ox ATTRIBUTE_UNUSED, int oy ATTRIBUTE_UNUSED,
int x, int y, SDL_Rect * update_rect)
{
if (snd_effects[which] != NULL) {
api->playsound(snd_effects[which], 128, 255);
}
kaleidoscope_lens_render(api, which, canvas, snapshot, x, y, 1);
update_rect->x = 0;
@ -293,6 +297,8 @@ void kaleidoscope_lens_release(magic_api * api, int which,
update_rect->y = 0;
update_rect->w = canvas->w;
update_rect->h = canvas->h;
api->stopsound();
}