diff options
Diffstat (limited to 'manuals/chickadee/Audio.html')
-rw-r--r-- | manuals/chickadee/Audio.html | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/manuals/chickadee/Audio.html b/manuals/chickadee/Audio.html index 52ed54b..4a72f03 100644 --- a/manuals/chickadee/Audio.html +++ b/manuals/chickadee/Audio.html @@ -1,6 +1,6 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> -<!-- Copyright (C) 2017-2020 David Thompson davet@gnu.org +<!-- Copyright (C) 2017-2021 David Thompson davet@gnu.org Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 @@ -33,7 +33,7 @@ http://www.texinfo.org/ (GNU Texinfo). <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents"> <link href="API-Reference.html" rel="up" title="API Reference"> <link href="Audio-Files.html" rel="next" title="Audio Files"> -<link href="Shaders.html" rel="prev" title="Shaders"> +<link href="Rendering-Engine.html" rel="prev" title="Rendering Engine"> <style type="text/css"> <!-- a.summary-letter {text-decoration: none} @@ -85,7 +85,7 @@ ul.no-bullet {list-style: none} Next: <a href="Scripting.html" accesskey="n" rel="next">Scripting</a>, Previous: <a href="Graphics.html" accesskey="p" rel="prev">Graphics</a>, Up: <a href="API-Reference.html" accesskey="u" rel="up">API Reference</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html" title="Index" rel="index">Index</a>]</p> </div> <hr> -<span id="Audio-1"></span><h3 class="section">2.4 Audio</h3> +<span id="Audio-1"></span><h3 class="section">5.4 Audio</h3> <p>A game isn’t complete without sound. Most games play some cool background music to set the mood and have many sound effects to play @@ -108,15 +108,9 @@ in the load hook (or anywhere else once the game loop is running) and play it! </p> <div class="example"> -<pre class="example">(use-modules (chickadee audio)) +<pre class="example">(define sample (load-audio "neat-sound-effect.wav")) -(define audio #f) - -(define (load) - (set! audio (load-audio "neat-sound-effect.wav")) - (audio-play audio)) - -(run-game #:load load) +(audio-play sample) </pre></div> <p>For more advanced usage, check out the full API reference in the |