Magic Fur: Sound effect

This commit is contained in:
Bill Kendrick 2023-01-30 00:32:48 -08:00
parent 6161ebe59a
commit 1687fd4de1
4 changed files with 12 additions and 5 deletions

View file

@ -6,7 +6,7 @@ Copyright (c) 2002-2023
Various contributors (see below, and CHANGES.txt) Various contributors (see below, and CHANGES.txt)
https://tuxpaint.org/ https://tuxpaint.org/
June 17, 2002 - January 29, 2023 June 17, 2002 - January 30, 2023
* Design and Coding: * Design and Coding:
@ -127,6 +127,10 @@ June 17, 2002 - January 29, 2023
(Why? Because Van Gogh liked Wagner: (Why? Because Van Gogh liked Wagner:
https://yalebooks.yale.edu/book/9780300228335/van-gogh-and-music/) https://yalebooks.yale.edu/book/9780300228335/van-gogh-and-music/)
Fur sound effect based on "Petting Long, Coarse Fur.wav"
(https://freesound.org/people/Kawgrim/sounds/584865/)
Creative Commons 0 by Kawgrim <https://freesound.org/people/Kawgrim/>
Mouse accessibility code and keyboard access Mouse accessibility code and keyboard access
Ankit Choudary <ankit.goaldecided@gmail.com>, as part of GSOC 2010, 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> with integration and fixes by Pere Pujal i Carabantes <pere@fornol.no-ip.org>

View file

@ -7,7 +7,7 @@ Various contributors (see below, and AUTHORS.txt)
https://tuxpaint.org/ https://tuxpaint.org/
2022.January.29 (0.9.29) 2022.January.30 (0.9.29)
* Improvements to "Stamp" tool: * Improvements to "Stamp" tool:
----------------------------- -----------------------------
* Stamps may now be rotated. * Stamps may now be rotated.
@ -40,6 +40,9 @@ https://tuxpaint.org/
Attribution 3.0 Unported (CC BY 3.0), and conducted by, Attribution 3.0 Unported (CC BY 3.0), and conducted by,
Philip Milman <https://pmmusic.pro/>) Philip Milman <https://pmmusic.pro/>)
("Fur" sound effected licensed as Creative Commons 0 (CC0 1.0)
by https://freesound.org/people/Kawgrim/)
* [WIP] "Rivulet"; apply rivulets of water to the canvas * [WIP] "Rivulet"; apply rivulets of water to the canvas
- needs better icon - needs better icon
- needs sound effect - needs sound effect

BIN
magic/sounds/swirls_fur.ogg Normal file

Binary file not shown.

View file

@ -7,7 +7,7 @@
Inspired by "Night Sky Scene [Pen Parallax]" Scratch Project Inspired by "Night Sky Scene [Pen Parallax]" Scratch Project
by -HexaScape- <https://scratch.mit.edu/users/-HexaScape-> by -HexaScape- <https://scratch.mit.edu/users/-HexaScape->
Last updated: January 29, 2023 Last updated: January 30, 2023
*/ */
#include <stdio.h> #include <stdio.h>
@ -56,7 +56,7 @@ char * swirl_icon_filenames[NUM_SWIRL_TOOLS] = {
char * swirl_sfx_filenames[NUM_SWIRL_TOOLS] = { char * swirl_sfx_filenames[NUM_SWIRL_TOOLS] = {
"swirls_circles.ogg", "swirls_circles.ogg",
"swirls_rays.ogg", "swirls_rays.ogg",
"swirls_rays.ogg" // FIXME "swirls_fur.ogg"
}; };
int SWIRLS_NUM_STROKES_PER_DRAG_LINE[NUM_SWIRL_TOOLS] = { int SWIRLS_NUM_STROKES_PER_DRAG_LINE[NUM_SWIRL_TOOLS] = {
@ -264,7 +264,7 @@ void swirls_release(magic_api * api, int which,
SDL_Surface * snapshot ATTRIBUTE_UNUSED, SDL_Surface * snapshot ATTRIBUTE_UNUSED,
int x ATTRIBUTE_UNUSED, int y ATTRIBUTE_UNUSED, int x ATTRIBUTE_UNUSED, int y ATTRIBUTE_UNUSED,
SDL_Rect * update_rect ATTRIBUTE_UNUSED) { SDL_Rect * update_rect ATTRIBUTE_UNUSED) {
if (snd_effects[which] != NULL) if (snd_effects[which] != NULL && which != SWIRL_TOOL_FUR)
api->stopsound(); api->stopsound();
} }