|
| void | _initmodule (void) |
| void | ritrackerlib_mt_music (void) |
| void | _stopmodule (void) |
| void | _trackSetDMA (void) |
| void | _tracker (void) |
| void | _trackermask (void) |
| void | _trackerpause (void) |
| void | ritrackerlib_libinit (void) |
| void | ritrackerlib_libfinit (void) |
| static void | mt_end (void) |
| static void | mt_music_c (void) |
| static void | checkmoreefx (aud_t *hw, struct chan *c) |
| static void | dmawait (void) |
| static UWORD | cmdword (const struct chan *c) |
| static void | settempo (UWORD tempo) |
| static void | l6_int (void) |
| static void | ciaplayerinit_unreached (void) |
| static void | ciaplayerinit (void) |
| static void | ciaplayerfinit (void) |
| static void | mt_init (void) |
| static void | mt_pernop (aud_t *hw, struct chan *c) |
| static void | mt_updatefunk (struct chan *c) |
| static void | mt_arpeggio (aud_t *hw, struct chan *c) |
| static void | nor_trackevent (struct chan *c) |
| static void | mt_portaup (aud_t *hw, struct chan *c) |
| static void | mt_fineportaup (aud_t *hw, struct chan *c) |
| static void | mt_portadown (aud_t *hw, struct chan *c) |
| static void | mt_fineportadown (aud_t *hw, struct chan *c) |
| static void | mt_settoneporta (struct chan *c) |
| static void | mt_toneportnochange (aud_t *hw, struct chan *c) |
| static void | mt_toneportamento (aud_t *hw, struct chan *c) |
| static void | mt_vibrato2 (aud_t *hw, struct chan *c) |
| static void | mt_vibrato (aud_t *hw, struct chan *c) |
| static void | mt_tremolo (aud_t *hw, struct chan *c) |
| static void | mt_sampleoffset (struct chan *c) |
| static void | mt_volslideup (aud_t *hw, struct chan *c, UBYTE amount) |
| static void | mt_volslidedown2 (aud_t *hw, struct chan *c, UBYTE amount) |
| static void | mt_volumeslide (aud_t *hw, struct chan *c) |
| static void | mt_pj2 (void) |
| static void | mt_positionjump (struct chan *c) |
| static void | mt_patternbreak (struct chan *c) |
| static void | mt_volumechange (aud_t *hw, struct chan *c) |
| static void | mt_setspeed (struct chan *c) |
| static void | mt_doretrig (aud_t *hw, struct chan *c) |
| static void | mt_e_commands (aud_t *hw, struct chan *c) |
| static void | mt_checkefx (aud_t *hw, struct chan *c) |
| static void | setperiod_regs (aud_t *hw, struct chan *c) |
| static void | mt_setperiod (aud_t *hw, struct chan *c) |
| static void | mt_playvoice (aud_t *hw, struct chan *c, ULONG *patpos, UBYTE *sampleinfo) |
| static void | libinit_c (void) |
| | init: nothing plays yet (playing = 0).
|
| static void | libfinit_c (void) |
| | finit: silence the voices (mt_end) if TrackInit was called.
|
| static void | tracker_c (UBYTE on) |
| | Tracker on+off: switch the player on or off.
|
| static void | initmodule_c (UBYTE *module) |
| | TrackInit address: initialise a module and enable playing.
|
| static void | tracksetdma_c (UWORD wait) |
| | TrackDMA dmawait.w: the DBRA count of the waits for Paula's DMA.
|
| static void | stopmodule_c (void) |
| | TrackStop: stop playing (mt_end: volumes 0, audio DMA off).
|
| static void | trackerpause_c (UBYTE pause) |
| | TrackerPause On|Off: pause or continue the module.
|
| static void | cut (aud_t *hw) |
| static void | trackermask_c (UBYTE mask) |
| | TrackerChannels mask: the voices to play.
|
| static void | music_c (void) |
| | TrackPlay: one tick of the play routine (mt_music).
|
| void initmodule_c |
( |
UBYTE * | module | ) |
|
|
static |
TrackInit address: initialise a module and enable playing.
mt_init: the sample starts behind the highest pattern, song position 0 (its sample clearing: Fixed (#570); its pattern scan: Fixed (#477)). Also while Tracker Off, where mt_init leaves the filter and the voices alone; Tracker On then plays this module (Fixed (#573): the original's mt_init did nothing, and Tracker On played the old song). The program calls TrackPlay itself (the CIA interrupt setup is dead).
- Parameters
-
| module | d0: the module (a Protracker file in memory, 31 samples, "M.K."; not checked) |
| void tracker_c |
( |
UBYTE | on | ) |
|
|
static |
Tracker on+off: switch the player on or off.
Nothing happens if the status does not change. 0: mt_end (voices silent, audio DMA off) and status off; else status on. Off keeps mt_Enable, so On continues a module that was playing (Fixed (#572): the original cleared it with mt_end and On only ANDed it, so the song stayed stopped until TrackInit or TrackerPause 0); a module stopped or paused before Off stays stopped. While off, TrackInit initialises the song but leaves the hardware alone (Fixed (#573)).
- Parameters
-
| on | d0.b: 0 off, else on (any nonzero byte) |
| void trackermask_c |
( |
UBYTE | mask | ) |
|
|
static |
TrackerChannels mask: the voices to play.
Bit 3 = voice 1 ... bit 0 = voice 4 (default 15). A cleared voice's pointer, length, period and volume are zeroed and its audio DMA is switched off; the play routine writes its registers into a block nobody reads, so no effect and no loop pointer reaches it (Fixed (#567): the original left the DMA on and still wrote the effects of the ticks between the rows and mt_SetDMA's loop pointers to Paula). A masked voice still plays its notes, silently: its n_dmabit is 0, so it switches no DMA, and its effects (speed, jumps, breaks) apply (Fixed (#568): the original skipped its notes, and the following voices played the notes of the voice before).
- Parameters
-