Activated new Magic Tool sound effects.

This commit is contained in:
William Kendrick 2004-12-12 10:55:08 +00:00
parent 420d8acad3
commit 6248e11d0a
3 changed files with 22 additions and 3 deletions

View file

@ -7,7 +7,7 @@ bill@newbreedsoftware.com
http://www.newbreedsoftware.com/tuxpaint/ http://www.newbreedsoftware.com/tuxpaint/
June 17, 2002 - December 10, 2004 June 17, 2002 - December 12, 2004
* Design and Coding: * Design and Coding:
@ -68,6 +68,10 @@ June 17, 2002 - December 10, 2004
* Blur - Microphone against mousepad. * Blur - Microphone against mousepad.
* Chalk - Microphone against head of hair. * Chalk - Microphone against head of hair.
* Fade - Squeaky frog. * Fade - Squeaky frog.
* Smudge - Squishy mouth noise.
* Cartoon
* "cartoon6.wav" from http://www.grsites.com/
* Many others taken from various sources on the web. * Many others taken from various sources on the web.

View file

@ -8,7 +8,7 @@
bill@newbreedsoftware.com bill@newbreedsoftware.com
http://www.newbreedsoftware.com/tuxpaint/ http://www.newbreedsoftware.com/tuxpaint/
June 15, 2002 - December 19, 2002 June 15, 2002 - December 12, 2004
*/ */
@ -44,7 +44,11 @@ enum {
SND_BLUR, /* Magic blur */ SND_BLUR, /* Magic blur */
SND_BLOCKS, /* Magic blocks */ SND_BLOCKS, /* Magic blocks */
SND_FADE, /* Magic fade */ SND_FADE, /* Magic fade */
SND_DARKEN, /* Magic darken */
SND_RAINBOW, /* Magic rainbow */ SND_RAINBOW, /* Magic rainbow */
SND_SMUDGE, /* Magic smudge */
SND_TINT, /* Magic tint */
SND_CARTOON, /* Magic cartoon */
SND_KEYCLICK, /* Text tool keyboard click feedback */ SND_KEYCLICK, /* Text tool keyboard click feedback */
SND_RETURN, /* Text tool carriage return sound */ SND_RETURN, /* Text tool carriage return sound */
SND_SHRINK, /* Stamp shrink */ SND_SHRINK, /* Stamp shrink */
@ -84,7 +88,11 @@ const char * const sound_fnames[NUM_SOUNDS] = {
DATA_PREFIX "sounds/blur.wav", DATA_PREFIX "sounds/blur.wav",
DATA_PREFIX "sounds/blocks.wav", DATA_PREFIX "sounds/blocks.wav",
DATA_PREFIX "sounds/fade.wav", DATA_PREFIX "sounds/fade.wav",
DATA_PREFIX "sounds/darken.wav",
DATA_PREFIX "sounds/rainbow.wav", DATA_PREFIX "sounds/rainbow.wav",
DATA_PREFIX "sounds/smudge.wav",
DATA_PREFIX "sounds/tint.wav",
DATA_PREFIX "sounds/cartoon.wav",
DATA_PREFIX "sounds/keyclick.wav", DATA_PREFIX "sounds/keyclick.wav",
DATA_PREFIX "sounds/return.wav", DATA_PREFIX "sounds/return.wav",
DATA_PREFIX "sounds/shrink.wav", DATA_PREFIX "sounds/shrink.wav",

View file

@ -4059,12 +4059,19 @@ static void magic_draw(int x1, int y1, int x2, int y2, int button_down)
playsound(0, SND_BLOCKS, 0); playsound(0, SND_BLOCKS, 0);
else if (cur_magic == MAGIC_FADE) else if (cur_magic == MAGIC_FADE)
playsound(0, SND_FADE, 0); playsound(0, SND_FADE, 0);
else if (cur_magic == MAGIC_DARKEN)
playsound(0, SND_DARKEN, 0);
else if (cur_magic == MAGIC_RAINBOW) else if (cur_magic == MAGIC_RAINBOW)
playsound(0, SND_RAINBOW, 0); playsound(0, SND_RAINBOW, 0);
else if (cur_magic == MAGIC_SMUDGE)
playsound(0, SND_SMUDGE, 0);
else if (cur_magic == MAGIC_CARTOON)
playsound(0, SND_CARTOON, 0);
else if (cur_magic == MAGIC_TINT)
playsound(0, SND_TINT, 0);
/* FIXME: Need sounds for: /* FIXME: Need sounds for:
Smudge Smudge
Darken
Tint Tint
Cartoon */ Cartoon */