#include "modplayer/modplayer.h"
#include <stddef.h>
#include <stdint.h>
#include "common/hardware/dma.h"
#include "common/hardware/spu.h"
Go to the source code of this file.
◆ SETVOICESAMPLERATE
| #define SETVOICESAMPLERATE |
( |
|
channel, |
|
|
|
newPeriod |
|
) |
| SPUSetVoiceSampleRate(channel, ((((7093789 / (newPeriod * 2)) << 12) / 44100) * MOD_SampleRateScale) >> 12) |
◆ SETVOICEVOLUME
| #define SETVOICEVOLUME |
( |
|
channel, |
|
|
|
volume |
|
) |
| |
Value: volume <<= 8; \
int pan = (channel & 1) ^ (channel >> 1); \
int16_t left = pan == 0 ? volume : 0; \
int16_t right = pan == 0 ? 0 : volume; \
SPUSetVoiceVolume(channel, left, right); \
} else { \
SPUSetVoiceVolume(channel, volume, volume); \
}
int MOD_Stereo
Definition modplayer.c:242
◆ MOD_Check()
◆ MOD_GetChannelKeyOns()
| unsigned MOD_GetChannelKeyOns |
( |
unsigned |
channel | ) |
|
◆ MOD_GetChannelVolume()
| unsigned MOD_GetChannelVolume |
( |
unsigned |
channel | ) |
|
◆ MOD_Load()
◆ MOD_LoadEx()
| unsigned MOD_LoadEx |
( |
const struct MODFileFormat * |
module, |
|
|
const uint8_t * |
sampleData |
|
) |
| |
◆ MOD_PlayNote()
| void MOD_PlayNote |
( |
unsigned |
channel, |
|
|
unsigned |
sampleID, |
|
|
unsigned |
note, |
|
|
int16_t |
volume |
|
) |
| |
◆ MOD_PlaySoundEffect()
| void MOD_PlaySoundEffect |
( |
unsigned |
channel, |
|
|
unsigned |
sampleID, |
|
|
unsigned |
note, |
|
|
int16_t |
volume |
|
) |
| |
◆ MOD_Poll()
◆ MOD_Relocate()
| void MOD_Relocate |
( |
uint8_t * |
s1 | ) |
|
◆ MOD_SetMusicVolume()
| void MOD_SetMusicVolume |
( |
uint32_t |
musicVolume | ) |
|
◆ MOD_Silence()
◆ MOD_BPM
◆ MOD_ChangeOrderNextTick
| int MOD_ChangeOrderNextTick = 0 |
◆ MOD_ChangeRowNextTick
| int MOD_ChangeRowNextTick = 0 |
◆ MOD_Channels
| unsigned MOD_Channels = 0 |
◆ MOD_CurrentOrder
| unsigned MOD_CurrentOrder = 0 |
◆ MOD_CurrentPattern
| unsigned MOD_CurrentPattern = 0 |
◆ MOD_CurrentRow
| unsigned MOD_CurrentRow = 0 |
◆ MOD_hblanks
◆ MOD_LoopCount
| unsigned MOD_LoopCount = 0 |
◆ MOD_LoopStart
| unsigned MOD_LoopStart = 0 |
◆ MOD_NextOrder
| unsigned MOD_NextOrder = 0 |
◆ MOD_NextRow
◆ MOD_PatternDelay
| uint8_t MOD_PatternDelay = 0 |
◆ MOD_PeriodTable
| const uint16_t MOD_PeriodTable[36 *16] |
◆ MOD_RowPointer
| const uint8_t* MOD_RowPointer = NULL |
◆ MOD_SampleRateScale
| uint32_t MOD_SampleRateScale = 4096 |
◆ MOD_SongLength
| unsigned MOD_SongLength = 0 |
◆ MOD_Speed
◆ MOD_Stereo
◆ MOD_Tick