32 #include <sifteo/abi.h>
59 return sys.sampleRate;
82 _SYS_AUDIO_DEFAULT_VOLUME,
83 numSamples *
sizeof samples[0],
84 reinterpret_cast<uintptr_t
>(samples),
117 return song.nChannels;
122 return song.nPatterns;
127 return song.nInstruments;
unsigned numPatterns() const
The number of patterns in this tracker module.
Definition: asset/audio.h:121
unsigned speed() const
Return the default speed for this audio asset, in samples per second.
Definition: asset/audio.h:58
unsigned numInstruments() const
The number of instruments in this tracker module.
Definition: asset/audio.h:126
static AssetAudio fromPCM(const T &samples)
Templatized version of fromPCM(), for fixed-size sample arrays.
Definition: asset/audio.h:91
#define arraysize(a)
Definition: macros.h:362
A Tracker module, converted from XM format by stir
Definition: asset/audio.h:112
An audio asset, using any supported compression codec.
Definition: asset/audio.h:50
unsigned numChannels() const
The number of channels used by this tracker module.
Definition: asset/audio.h:116
unsigned tempo() const
This tracker module's default tempo (ticks)
Definition: asset/audio.h:131
unsigned bpm() const
This tracker module's default beats per minute (notes)
Definition: asset/audio.h:136
static AssetAudio fromPCM(const int16_t *samples, unsigned numSamples)
Create an AssetAudio object programmatically, from uncompressed PCM data.
Definition: asset/audio.h:74