Jukebox
Documentation API Demos

Demos Overview

Single Playback Demo

Description

The Single Playback Demo is the way to start using Jukebox.
It is the easiest demo that shows the basic usage of the jukebox.Player.

The demo is located at demo/single.html

Multi Playback Demo

Description

The Multi Playback Demo is a demo that shows advanced timing of spritemap entries.
It shows you in a basic way of how to time the calls to the jukebox.Player API.

The demo is located at demo/multi.html

(Dubstep) Sequencer Demo

Description

The Dubstep Sequencer Demo is a fun project that shows an advanced use-case for Jukebox and makes usage of timing / tracking.

The demo is located at demo/sequencer/

iOS Integration Demo

Description

Security Model

iOS' security model doesn't allow you to play sounds without a precedent user interaction.

The solution for automated playback is running a sprite entry via autoplay. This is either
a background music - or just silence. It will allow you to playback other entries via
timeouts, intervals etc.

No Parallel Playback

iOS' implementation is not able to playback two different sounds in parallel.

Jukebox's solution for background music is to re-continue background music playback right
after other sound effects were played.

Use AIFF Container / IMA4 Compression

iOS' implementation is very, very slow when playing back encoded formats.

A hint is here to use the Core Audio File format, which is apparently only an AIFF-container using IMA4 compression. Take a look at both demos to see the difference.

The demos are located at demo/ios.html and demo/ios-aiff.html.

Game Integration Demo

Description

The Game Integration Demo shows you how to modify jukebox.Manager for usage with an own game loop.
This is important for performance-critic environments like mobile games.

The demo is located at demo/game.html

Details

See jukebox.Manager Settings for further details.