Skip to content

Audio Engine

egyptron edited this page Sep 24, 2026 · 1 revision

8-Bit Audio Engine

Awake Simple S1 includes an integrated, dependency-free square-wave audio synthesizer. It produces retro 8-bit sound stingers directly through the Windows audio subsystem.


Syntax

play sound "<sound_identifier>"

Audio Stinger Reference

Identifier Frequency & Timing Typical Use Case
"attack" Double low-frequency strike Basic physical hits, gunshots.
"critical" Rapid 3-tier ascending punch Critical hits, headshots, parries.
"heal" Rising 3-tone harmonic chime Consuming potions, restoring mana.
"victory" 4-tone triumphant fanfare Quest complete, boss defeated.
"defeat" 3-tone descending minor slide Game Over, fainting, player death.
"flee" Rapid upward frequency sweep Escapes, dodges, teleportation.

Example

display("Enemy ambushed you!")
play sound "attack"
wait 500 milliseconds

display("Drank Restoration Elixir.")
play sound "heal"
wait 1 seconds

display_success("Victory achieved!")
play sound "victory"

Clone this wiki locally