Go to the source code of this file.
Typedefs | |
| typedef void(*) | SoundFunc(void) |
| typedef void(*) | SoundCommand(struct SoundPlayer *player, struct SoundTrack *track) |
| A command table entry: the driver calls it with the player and the track. | |
Functions | |
| void | MusicTrack_FinishSequence (void) |
| void | MusicTrack_Goto (void) |
| void | MusicTrack_CallPattern (void) |
| void | MusicTrack_ReturnFromPattern (void) |
| void | MusicTrack_Repeat (void) |
| void | MusicTrack_SetPriorityFromCommand (void) |
| void | MusicPlayer_SetTempoFromCommand (void) |
| void | MusicTrack_SetKeyOffsetFromCommand (void) |
| void | MusicTrack_SetVoiceFromCommand (void) |
| void | MusicTrack_SetVolumeFromCommand (void) |
| void | MusicTrack_SetPanFromCommand (void) |
| void | MusicTrack_SetBendFromCommand (void) |
| void | MusicTrack_SetBendRangeFromCommand (void) |
| void | MusicTrack_SetLfoSpeedFromCommand (void) |
| void | MusicTrack_SetLfoDelayFromCommand (void) |
| void | MusicTrack_SetModulationFromCommand (void) |
| void | MusicTrack_SetModulationTargetFromCommand (void) |
| void | MusicTrack_SetTuneFromCommand (void) |
| void | MusicTrack_WriteSoundRegisterFromCommand (void) |
| void | MusicTrack_ReleaseKey (void) |
| void | AudioEngine_SetPcmRate (void) |
| void | MusicTrack_Stop (void) |
| void | MusicPlayer_StepFade (void) |
| void | MusicTrack_CalcOutput (void) |
| void | SoundNote_Detach (void) |
| void | SoundDriver_ClearBuffer (void) |
| void | MusicTrack_ReadVoiceTarget (struct SoundPlayer *player, struct SoundTrack *track) |
| Reads an unaligned little-endian voice target address from the sequence. | |
| void | MusicTrack_SetVoiceKind (struct SoundPlayer *player, struct SoundTrack *track) |
| Reads the voice kind from the sequence. | |
| void | MusicTrack_SetVoiceAttack (struct SoundPlayer *player, struct SoundTrack *track) |
| Reads the voice attack rate from the sequence. | |
| void | MusicTrack_SetVoiceDecay (struct SoundPlayer *player, struct SoundTrack *track) |
| Reads the voice decay rate from the sequence. | |
| void | MusicTrack_SetVoiceSustain (struct SoundPlayer *player, struct SoundTrack *track) |
| Reads the voice sustain level from the sequence. | |
| void | MusicTrack_SetVoiceRelease (struct SoundPlayer *player, struct SoundTrack *track) |
| Reads the voice release rate from the sequence. | |
| void | MusicTrack_SetTailLevel (struct SoundPlayer *player, struct SoundTrack *track) |
| Reads the note tail volume from the sequence. | |
| void | MusicTrack_SetTailLength (struct SoundPlayer *player, struct SoundTrack *track) |
| Reads the note tail duration from the sequence. | |
| void | MusicTrack_SetVoiceLength (struct SoundPlayer *player, struct SoundTrack *track) |
| Reads the hardware note length from the sequence. | |
| void | MusicTrack_SetVoicePanOrSweep (struct SoundPlayer *player, struct SoundTrack *track) |
| Reads the voice pan or CGB sweep setting from the sequence. | |
| void | Runtime_CallWorkEntryWithArgs () |
Variables | |
| const SoundFunc | gSound_CommandTableTemplate [] |
| Sequence commands copied for each player, and driver entry points. | |
| const u8 | gSound_PcmPitchCodes [] |
| PCM pitches: the high four bits hold the octave, the low four the note. | |
| const u32 | gSound_PcmFrequencySteps [] |
| Frequencies by note at octave zero, in 32-bit fixed point. | |
| const u16 | gSound_FrameLengths [] |
| Samples per frame for each playback frequency setting. | |
| const u8 | gSound_CgbPitchCodes [] |
| CGB channel pitches. | |
| const s16 | gSound_CgbFrequencySteps [] |
| Frequencies by note for CGB channels. | |
| const u8 | gSound_NoisePitchCodes [] |
| Noise channel pitches. | |
| const u8 | gSound_Cgb3LevelCodes [] |
| CGB channel 3 waveform volumes. | |
| const u8 | gSound_ClockLengths [] |
| Note durations in clock ticks. | |
| const SoundCommand | gSound_ExtendedCommandTable [] |
| Extended commands; entries zero and three do nothing. | |
| typedef void(*) SoundCommand(struct SoundPlayer *player, struct SoundTrack *track) |
| void MusicTrack_FinishSequence | ( | void | ) |
Referenced by MusicTrack_FinishSequence().
| void MusicTrack_Goto | ( | void | ) |
Referenced by MusicTrack_Goto().
| void MusicTrack_CallPattern | ( | void | ) |
Referenced by MusicTrack_CallPattern().
| void MusicTrack_ReturnFromPattern | ( | void | ) |
Referenced by MusicTrack_ReturnFromPattern().
| void MusicTrack_Repeat | ( | void | ) |
Referenced by MusicTrack_Repeat().
| void MusicTrack_SetPriorityFromCommand | ( | void | ) |
Referenced by MusicTrack_SetPriorityFromCommand().
| void MusicPlayer_SetTempoFromCommand | ( | void | ) |
Referenced by MusicPlayer_SetTempoFromCommand().
| void MusicTrack_SetKeyOffsetFromCommand | ( | void | ) |
Referenced by MusicTrack_SetKeyOffsetFromCommand().
| void MusicTrack_SetVoiceFromCommand | ( | void | ) |
Referenced by MusicTrack_SetVoiceFromCommand().
| void MusicTrack_SetVolumeFromCommand | ( | void | ) |
Referenced by MusicTrack_SetVolumeFromCommand().
| void MusicTrack_SetPanFromCommand | ( | void | ) |
Referenced by MusicTrack_SetPanFromCommand().
| void MusicTrack_SetBendFromCommand | ( | void | ) |
Referenced by MusicTrack_SetBendFromCommand().
| void MusicTrack_SetBendRangeFromCommand | ( | void | ) |
Referenced by MusicTrack_SetBendRangeFromCommand().
| void MusicTrack_SetLfoSpeedFromCommand | ( | void | ) |
| void MusicTrack_SetLfoDelayFromCommand | ( | void | ) |
Referenced by MusicTrack_SetLfoDelayFromCommand().
| void MusicTrack_SetModulationFromCommand | ( | void | ) |
| void MusicTrack_SetModulationTargetFromCommand | ( | void | ) |
Referenced by MusicTrack_SetModulationTargetFromCommand().
| void MusicTrack_SetTuneFromCommand | ( | void | ) |
Referenced by MusicTrack_SetTuneFromCommand().
| void MusicTrack_WriteSoundRegisterFromCommand | ( | void | ) |
Referenced by MusicTrack_WriteSoundRegisterFromCommand().
| void MusicTrack_ReleaseKey | ( | void | ) |
| void AudioEngine_SetPcmRate | ( | void | ) |
| void MusicTrack_Stop | ( | void | ) |
| void MusicPlayer_StepFade | ( | void | ) |
| void MusicTrack_CalcOutput | ( | void | ) |
| void SoundNote_Detach | ( | void | ) |
Referenced by SoundNote_Detach().
| void SoundDriver_ClearBuffer | ( | void | ) |
Referenced by SoundDriver_ClearBuffer().
| void MusicTrack_ReadVoiceTarget | ( | struct SoundPlayer * | player, |
| struct SoundTrack * | track ) |
| void MusicTrack_SetVoiceKind | ( | struct SoundPlayer * | player, |
| struct SoundTrack * | track ) |
Reads the voice kind from the sequence.
Definition at line 1092 of file engine.c.
Referenced by MusicTrack_SetVoiceKind(), and SoundDriver_ClearBuffer().
| void MusicTrack_SetVoiceAttack | ( | struct SoundPlayer * | player, |
| struct SoundTrack * | track ) |
Reads the voice attack rate from the sequence.
Definition at line 1099 of file engine.c.
Referenced by MusicTrack_SetVoiceAttack(), and SoundDriver_ClearBuffer().
| void MusicTrack_SetVoiceDecay | ( | struct SoundPlayer * | player, |
| struct SoundTrack * | track ) |
Reads the voice decay rate from the sequence.
Definition at line 1106 of file engine.c.
Referenced by MusicTrack_SetVoiceDecay(), and SoundDriver_ClearBuffer().
| void MusicTrack_SetVoiceSustain | ( | struct SoundPlayer * | player, |
| struct SoundTrack * | track ) |
Reads the voice sustain level from the sequence.
Definition at line 1113 of file engine.c.
Referenced by MusicTrack_SetVoiceSustain(), and SoundDriver_ClearBuffer().
| void MusicTrack_SetVoiceRelease | ( | struct SoundPlayer * | player, |
| struct SoundTrack * | track ) |
Reads the voice release rate from the sequence.
Definition at line 1120 of file engine.c.
Referenced by MusicTrack_SetVoiceRelease(), and SoundDriver_ClearBuffer().
| void MusicTrack_SetTailLevel | ( | struct SoundPlayer * | player, |
| struct SoundTrack * | track ) |
Reads the note tail volume from the sequence.
Definition at line 1127 of file engine.c.
Referenced by MusicTrack_SetTailLevel(), and SoundDriver_ClearBuffer().
| void MusicTrack_SetTailLength | ( | struct SoundPlayer * | player, |
| struct SoundTrack * | track ) |
Reads the note tail duration from the sequence.
Definition at line 1134 of file engine.c.
Referenced by MusicTrack_SetTailLength(), and SoundDriver_ClearBuffer().
| void MusicTrack_SetVoiceLength | ( | struct SoundPlayer * | player, |
| struct SoundTrack * | track ) |
Reads the hardware note length from the sequence.
Definition at line 1141 of file engine.c.
Referenced by MusicTrack_SetVoiceLength(), and SoundDriver_ClearBuffer().
| void MusicTrack_SetVoicePanOrSweep | ( | struct SoundPlayer * | player, |
| struct SoundTrack * | track ) |
Reads the voice pan or CGB sweep setting from the sequence.
Definition at line 1148 of file engine.c.
Referenced by MusicTrack_SetVoicePanOrSweep(), and SoundDriver_ClearBuffer().
| void Runtime_CallWorkEntryWithArgs | ( | ) |
| const SoundFunc gSound_CommandTableTemplate[] |
| const u8 gSound_PcmPitchCodes[] |
PCM pitches: the high four bits hold the octave, the low four the note.
Definition at line 105 of file tables.c.
Referenced by Audio_UmulHigh32(), and Pcm_KeyToFrequency().
| const u32 gSound_PcmFrequencySteps[] |
Frequencies by note at octave zero, in 32-bit fixed point.
Definition at line 124 of file tables.c.
Referenced by Audio_UmulHigh32(), and Pcm_KeyToFrequency().
| const u16 gSound_FrameLengths[] |
Samples per frame for each playback frequency setting.
Definition at line 131 of file tables.c.
Referenced by AudioEngine_SetPcmRate(), and MusicTrack_HandleNote().
| const u8 gSound_CgbPitchCodes[] |
CGB channel pitches.
Definition at line 136 of file tables.c.
Referenced by Cgb_KeyToFrequency(), and MusicTrack_Stop().
| const s16 gSound_CgbFrequencySteps[] |
Frequencies by note for CGB channels.
Definition at line 151 of file tables.c.
Referenced by Cgb_KeyToFrequency(), and MusicTrack_Stop().
| const u8 gSound_NoisePitchCodes[] |
Noise channel pitches.
Definition at line 156 of file tables.c.
Referenced by Cgb_KeyToFrequency(), and MusicTrack_Stop().
| const u8 gSound_Cgb3LevelCodes[] |
CGB channel 3 waveform volumes.
Definition at line 165 of file tables.c.
Referenced by Cgb_UpdateChannels(), and MusicTrack_Stop().
| const u8 gSound_ClockLengths[] |
| const SoundCommand gSound_ExtendedCommandTable[] |
Extended commands; entries zero and three do nothing.
Definition at line 178 of file tables.c.
Referenced by MusicTrack_DispatchStreamCommand(), and STATIC_ASSERT().