2011-05-29 06:57:59 -04:00
|
|
|
|
2011-07-18 06:20:47 -04:00
|
|
|
.. _scriptref_sound:
|
2011-05-29 06:57:59 -04:00
|
|
|
|
|
|
|
Multimedia Functions
|
|
|
|
====================
|
|
|
|
|
|
|
|
|
|
|
|
Sound Functions
|
2011-07-18 12:46:10 -04:00
|
|
|
---------------
|
2011-05-29 06:57:59 -04:00
|
|
|
|
|
|
|
PlaySound
|
|
|
|
~~~~~~~~~
|
|
|
|
|
|
|
|
.. code-block:: pascal
|
|
|
|
|
|
|
|
procedure PlaySound(Sound : string);
|
|
|
|
|
|
|
|
PlaySound plays the sound file with the path *Sound*.
|
|
|
|
|
|
|
|
Supported formats: *.wav*. (Possibly others, if someone has time to figures
|
|
|
|
this out please let us know)
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
.. code-block:: pascal
|
|
|
|
|
|
|
|
PlaySound('C:\roar.wav');
|
|
|
|
|
|
|
|
|
|
|
|
StopSound
|
|
|
|
~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
|
|
.. code-block:: pascal
|
|
|
|
|
|
|
|
procedure StopSound;
|
|
|
|
|
|
|
|
StopSound stops all currently playing sounds.
|