diff --git a/Doc/sphinx/referencescript.rst b/Doc/sphinx/referencescript.rst index 4e8a5cf..28e2097 100644 --- a/Doc/sphinx/referencescript.rst +++ b/Doc/sphinx/referencescript.rst @@ -21,4 +21,5 @@ default (Pascal) engine. scriptref/bitmaps.rst scriptref/string.rst scriptref/tpa.rst + scriptref/sound.rst diff --git a/Doc/sphinx/scriptref/sound.rst b/Doc/sphinx/scriptref/sound.rst new file mode 100644 index 0000000..fd06ac3 --- /dev/null +++ b/Doc/sphinx/scriptref/sound.rst @@ -0,0 +1,38 @@ + +.. _scriptref_web: + +Multimedia Functions +==================== + + +Sound Functions +-------------- + +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. diff --git a/TODO.linux b/TODO.linux new file mode 100644 index 0000000..c31929d --- /dev/null +++ b/TODO.linux @@ -0,0 +1,4 @@ +TODO: + - Implement IsKeyDown properly. + - Implement KeyDown / KeyUp to work with multiple keyboard layouts. + Perhaps XTest already does this? diff --git a/TODO.windows b/TODO.windows new file mode 100644 index 0000000..cf56d24 --- /dev/null +++ b/TODO.windows @@ -0,0 +1,2 @@ +TODO: + -