Added 'stopsound()' to Magic plugin API.

Stopping longer sounds when user stops using tool (Shift & Kaleidoscope).
This commit is contained in:
William Kendrick 2007-11-21 16:15:49 +00:00
parent ca0cb771e5
commit 137797b2cd
5 changed files with 26 additions and 5 deletions

View file

@ -6,7 +6,7 @@
bill@newbreedsoftware.com
http://www.tuxpaint.org/
July 5, 2007 - August 23, 2007
July 5, 2007 - November 21, 2007
--------------------------------------------------------------------------
@ -460,6 +460,10 @@ Interfaces
The 'pan' and 'dist' values can be used to simulate location and
distance of the 'Magic' tool effect.
* void stopsound(void)
This function stops playing a sound played by playsound(). It is
useful to silence effects when the user stops using the tool (in
your 'release' function).
* void special_notify(int flag)
This function notifies Tux Paint of special events. Various
values defined in "tp_magic_api.h" can be 'or'ed together (using

View file

@ -15,7 +15,7 @@ New Breed Software</p>
<p><a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a><br>
<a href="http://www.tuxpaint.org/">http://www.tuxpaint.org/</a></p>
<p>July 5, 2007 - August 23, 2007</p>
<p>July 5, 2007 - November 21, 2007</p>
</center>
<hr size=2 noshade>
@ -579,6 +579,12 @@ plugin's functions.
simulate location and distance of the 'Magic' tool effect.<br>
<br>
<li><code><b>void stopsound(void)</b></code><br>
This function stops playing a sound played by <code>playsound()</code>.
It is useful to silence effects when the user stops using the tool
(in your '<code>release</code>' function).
<br>
<li><a name="special_notify">
<code><b>void special_notify(int&nbsp;flag)</b></code>
</a><br>