Nugget
|
#include "modplayer/modplayer.h"
#include <stddef.h>
#include <stdint.h>
#include "common/hardware/dma.h"
#include "common/hardware/spu.h"
Classes | |
struct | MODSampleData |
struct | MODFileFormat |
struct | SPUChannelData |
struct | SpuInstrumentData |
Macros | |
#define | SETVOICESAMPLERATE(channel, newPeriod) SPUSetVoiceSampleRate(channel, ((7093789 / (newPeriod * 2)) << 12) / 44100) |
#define | SETVOICEVOLUME(channel, volume) |
Functions | |
unsigned | MOD_Check (const struct MODFileFormat *module) |
uint32_t | MOD_Load (const struct MODFileFormat *module) |
unsigned | MOD_LoadEx (const struct MODFileFormat *module, const uint8_t *sampleData) |
void | MOD_Silence () |
void | MOD_Relocate (uint8_t *s1) |
void | MOD_Poll () |
void | MOD_PlayNote (unsigned channel, unsigned sampleID, unsigned note, int16_t volume) |
void | MOD_PlaySoundEffect (unsigned channel, unsigned sampleID, unsigned note, int16_t volume) |
void | MOD_SetMusicVolume (uint32_t musicVolume) |
Variables | |
unsigned | MOD_Channels = 0 |
unsigned | MOD_SongLength = 0 |
unsigned | MOD_CurrentOrder = 0 |
unsigned | MOD_CurrentPattern = 0 |
unsigned | MOD_CurrentRow = 0 |
unsigned | MOD_Speed = 0 |
unsigned | MOD_Tick = 0 |
unsigned | MOD_BPM = 0 |
const uint8_t * | MOD_RowPointer = NULL |
int | MOD_ChangeRowNextTick = 0 |
unsigned | MOD_NextRow = 0 |
int | MOD_ChangeOrderNextTick = 0 |
unsigned | MOD_NextOrder = 0 |
uint8_t | MOD_PatternDelay = 0 |
unsigned | MOD_LoopStart = 0 |
unsigned | MOD_LoopCount = 0 |
int | MOD_Stereo = 0 |
uint32_t | MOD_hblanks |
const uint16_t | MOD_PeriodTable [36 *16] |
#define SETVOICESAMPLERATE | ( | channel, | |
newPeriod | |||
) | SPUSetVoiceSampleRate(channel, ((7093789 / (newPeriod * 2)) << 12) / 44100) |
#define SETVOICEVOLUME | ( | channel, | |
volume | |||
) |
unsigned MOD_Check | ( | const struct MODFileFormat * | module | ) |
uint32_t MOD_Load | ( | const struct MODFileFormat * | module | ) |
unsigned MOD_LoadEx | ( | const struct MODFileFormat * | module, |
const uint8_t * | sampleData | ||
) |
void MOD_PlayNote | ( | unsigned | channel, |
unsigned | sampleID, | ||
unsigned | note, | ||
int16_t | volume | ||
) |
void MOD_PlaySoundEffect | ( | unsigned | channel, |
unsigned | sampleID, | ||
unsigned | note, | ||
int16_t | volume | ||
) |
void MOD_Poll | ( | ) |
void MOD_Relocate | ( | uint8_t * | s1 | ) |
void MOD_Silence | ( | ) |
unsigned MOD_BPM = 0 |
int MOD_ChangeOrderNextTick = 0 |
int MOD_ChangeRowNextTick = 0 |
unsigned MOD_Channels = 0 |
unsigned MOD_CurrentOrder = 0 |
unsigned MOD_CurrentPattern = 0 |
unsigned MOD_CurrentRow = 0 |
uint32_t MOD_hblanks |
unsigned MOD_LoopCount = 0 |
unsigned MOD_LoopStart = 0 |
unsigned MOD_NextOrder = 0 |
unsigned MOD_NextRow = 0 |
uint8_t MOD_PatternDelay = 0 |
const uint16_t MOD_PeriodTable[36 *16] |
const uint8_t* MOD_RowPointer = NULL |
unsigned MOD_SongLength = 0 |
unsigned MOD_Speed = 0 |
int MOD_Stereo = 0 |
unsigned MOD_Tick = 0 |