From af2872325ed461252303ec8b7987058b664843f1 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 10 Mar 2018 20:32:18 -0500 Subject: Update Chickadee manual. --- manuals/chickadee/Audio.html | 97 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 96 insertions(+), 1 deletion(-) (limited to 'manuals/chickadee/Audio.html') diff --git a/manuals/chickadee/Audio.html b/manuals/chickadee/Audio.html index 2f20199..755efb9 100644 --- a/manuals/chickadee/Audio.html +++ b/manuals/chickadee/Audio.html @@ -57,8 +57,31 @@ span.nolinebreak {white-space: nowrap} span.roman {font-family: initial; font-weight: normal} span.sansserif {font-family: sans-serif; font-weight: normal} ul.no-bullet {list-style: none} +@media (min-width: 1140px) { + body { + margin-left: 14rem; + margin-right: 4rem; + max-width: 52rem; + } +} + +@media (min-width: 800px) and (max-width: 1140px) { + body { + margin-left: 6rem; + margin-right: 4rem; + max-width: 52rem; + } +} + +@media (max-width: 800px) { + body { + margin: 1rem; + } +} + --> + @@ -73,8 +96,80 @@ Previous:

2.5 Audio

-

There is no audio support yet. Stay tuned! +

Chickadee has two data types for audio: samples and music. Samples +are for short sound effects like explosions. Music is for, well, +uh…, music.

+

Supported file formats include WAV and OGG. +

+
+
Scheme Procedure: load-sample file
+

Load audio sample from file. +

+ +
+
Scheme Procedure: set-sample-volume! volume
+

Set the volume that all samples are played at to volume, an +integer value between 0 and 128. +

+ +
+
Scheme Procedure: play-sample sample
+

Play sample. Pretty straightforward! +

+ +
+
Scheme Procedure: load-music file
+

Load music from file. +

+ +
+
Scheme Procedure: music-volume
+

Return the volume level for music, an integer value between 0 and 128. +

+ +
+
Scheme Procedure: set-music-volume! volume
+

Set the volume that music is played at to volume, an integer +value between 0 and 128. +

+ +
+
Scheme Procedure: play-music music [loop?]
+

Play music. If loop?, play it over and over and over and +over and… +

+ +
+
Scheme Procedure: pause-music
+

Pause the current music track. +

+ +
+
Scheme Procedure: resume-music
+

Resume the current music track. +

+ +
+
Scheme Procedure: rewind-music
+

estart the current music track from the beginning. +

+ +
+
Scheme Procedure: stop-music
+

Stop playing the current music track. +

+ +
+
Scheme Procedure: music-playing?
+

Return #t if music is currently playing. +

+ +
+
Scheme Procedure: music-paused?
+

Return #t if music is currently paused. +

+ -- cgit v1.2.3