Playback interface for Tracker modules. More...
#include <sifteo/audio.h>
Static Public Member Functions | |
static bool | isPaused () |
Is the tracker currently playing a module? | |
static bool | isStopped () |
Is the tracker currently playing a module? | |
static void | pause () |
Pause playback of a module. | |
static bool | play (const AssetTracker &asset) |
Begin playback of a module. More... | |
static bool | resume () |
Resume playback of a paused module. | |
static void | setPosition (uint16_t phrase, uint16_t row) |
Set play position for current song. More... | |
static void | setTempoModifier (int modifier) |
Scale tempo for current song. More... | |
static void | setVolume (int volume, _SYSAudioChannelID ch=-1) |
Scale volume for current channel. More... | |
static void | stop () |
Stop playback of the current module. More... | |
Playback interface for Tracker modules.
Supported module format is standard XM. stir
processes your modules as part of the application packaging process, resulting in an AssetTracker instance for each.
|
inlinestatic |
Begin playback of a module.
asset | specifies the module for playback. |
|
inlinestatic |
Set play position for current song.
Must only be called while a module is playing, takes effect at the end of the current note.
phrase | Index of target phrase. |
row | Index of target row in the pattern. |
|
inlinestatic |
Scale tempo for current song.
Must only be called while a module is playing, takes effect at the end of the current tick.
modifier | Value with which to increase/decrease tempo, in percent. |
|
inlinestatic |
Scale volume for current channel.
Must only be called while a module is playing.
volume | from 0 to MAX_VOLUME. |
ch | specifies the index of the channel in the module. Leave empty to set global volume. |
|
inlinestatic |
Stop playback of the current module.
Has no effect if a module is not currently playing.
Sifteo SDK v1.1.0 (see all versions)
Last updated Tue Dec 23 2014, by Doxygen