Smooth magic tool sound effect
CC-BY 4.0 by https://freesound.org/people/PercyFrench/
This commit is contained in:
parent
5e24fb3742
commit
375207f3d3
4 changed files with 10 additions and 6 deletions
|
|
@ -184,7 +184,7 @@ June 17, 2002 - May 22, 2023
|
||||||
Creative Commons Attribution 4.0 International (CC BY 4.0)
|
Creative Commons Attribution 4.0 International (CC BY 4.0)
|
||||||
by https://freesound.org/people/Ustym_Petrovych/
|
by https://freesound.org/people/Ustym_Petrovych/
|
||||||
|
|
||||||
"Loops" & "Squiggles" Magic tools
|
"Loops", "Squiggles" & "Smooth" Magic tools
|
||||||
by Bill Kendrick <bill@newbreedsoftware.com>
|
by Bill Kendrick <bill@newbreedsoftware.com>
|
||||||
|
|
||||||
"Loops" sound: "Percussion » Wobble Board"
|
"Loops" sound: "Percussion » Wobble Board"
|
||||||
|
|
@ -197,6 +197,11 @@ June 17, 2002 - May 22, 2023
|
||||||
Creative Commons 0 License (CC0)
|
Creative Commons 0 License (CC0)
|
||||||
by https://freesound.org/people/Tomoyo%20Ichijouji/
|
by https://freesound.org/people/Tomoyo%20Ichijouji/
|
||||||
|
|
||||||
|
"Smooth" sound: "clean guitar loop 3.mp3"
|
||||||
|
(https://freesound.org/people/PercyFrench/sounds/652600/)
|
||||||
|
Creative Commons Attribution 4.0 International (CC BY 4.0)
|
||||||
|
by https://freesound.org/people/PercyFrench/
|
||||||
|
|
||||||
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>
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,8 @@ https://tuxpaint.org/
|
||||||
* WIP Smooth - Freehand paintbrush with a smoothing effect (Bezier curve)
|
* WIP Smooth - Freehand paintbrush with a smoothing effect (Bezier curve)
|
||||||
h/t Pere for the idea
|
h/t Pere for the idea
|
||||||
Bill Kendrick <bill@newbreedsoftware.com>
|
Bill Kendrick <bill@newbreedsoftware.com>
|
||||||
- WIP needs sfx
|
Sound effect CC-BY 4.0 by
|
||||||
|
https://freesound.org/people/PercyFrench/
|
||||||
- WIP needs icon
|
- WIP needs icon
|
||||||
|
|
||||||
* WIP Squiggles - Draw squiggly shapes.
|
* WIP Squiggles - Draw squiggly shapes.
|
||||||
|
|
|
||||||
BIN
magic/sounds/smooth.ogg
Normal file
BIN
magic/sounds/smooth.ogg
Normal file
Binary file not shown.
|
|
@ -47,7 +47,7 @@ enum {
|
||||||
};
|
};
|
||||||
|
|
||||||
char * smooth_snd_fnames[NUM_TOOLS] = {
|
char * smooth_snd_fnames[NUM_TOOLS] = {
|
||||||
"rainbow.ogg", // FIXME
|
"smooth.ogg",
|
||||||
"squiggles.ogg",
|
"squiggles.ogg",
|
||||||
"loops.ogg",
|
"loops.ogg",
|
||||||
};
|
};
|
||||||
|
|
@ -318,8 +318,6 @@ void smooth_click(magic_api * api,
|
||||||
smooth_squiggle_rad = LOOP_RAD_CALC;
|
smooth_squiggle_rad = LOOP_RAD_CALC;
|
||||||
smooth_drag(api, which, canvas, last, x, y, x, y, update_rect);
|
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->x = 0;
|
||||||
update_rect->y = 0;
|
update_rect->y = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue