XMLGameEngine is a VGDL (video game description language) and an engine for running games completely contained within an XML file.
Status: Built (audio/sound.h, audio/audio.h, a file per library). Reference: sounds.
The 8-bit machines played bleeps, bloops and little tunes from a sound chip, not recordings. A sound written as notes in the game file fits the format as <bitmap> does: part of the description, readable, diffable, no file beside it.
synthesize() makes 16-bit mono at 44100 Hz, the same for every library; SFML and SDL2 have no synthesis of their own anyway. The synthesizer is tested with no device.<loop /> sits on the <sound>; a key’s <play> of a loop is held like a <move>, on with the press and off with the release. Elsewhere <play> turns it on and <silence> off. A loop is state, not an event: Engine compares the set that is on with what it told the Audio each frame, so silencing and asking again in one frame does not restart it. <silence> was chosen over <stop> (an object’s verb).<sound> of <part>s plays them at once, as a chip’s channels did; a sum past full scale is cut off, with no automatic scaling, so <volume> stays the author’s. <music sound> on a state loops while it is current, so a pause silences it with nothing written on the pause key; one that does not loop plays as the state begins. Rejected: a <music> element of its own (a tune is a sound), beats as lengths (a length is already a value), a tracker pattern table (a little language), music resuming where it paused (each library would need a pause).<play> queues a name; Engine plays the queue at the end of step(). Game never touches audio, so tests read the requests.<fire>, so a gun that is not ready stays silent (input).Sound files as the only form; a tracker or MML string ("t120 o4 c8 e8 g8", a little language in a string); each library’s own synthesis; a voice pool; sound tied to the window library.