resonance 1.0.1
Loading...
Searching...
No Matches
hsyn.h File Reference
#include "ezmidi/ezmidi.h"
Include dependency graph for hsyn.h:

Go to the source code of this file.

Classes

struct  sSynChannel
 Per-channel MIDI state. More...
struct  sSynNote
 One sounding note and the voice that plays it. More...
struct  sSynthRun
 Run-time switches the EE sets. More...
struct  TimerCtx
 The tick timer. More...
struct  sHdHeader
 Bank header. More...
struct  sHdChunk
 A table chunk of a bank header. More...
struct  sHdSplit
 A key split of a program. More...
struct  sHdProgram
 A program record. More...
struct  sHdSampleSet
 A sample set record. More...
struct  sHdSample
 A sample record. More...
struct  sHdVagInfo
 A VAG information record. More...

Macros

#define HSYN_CHANNELS   16
 The hardware synthesiser of the EZMIDI IOP module, from midi_hsyn.c.
#define HSYN_BANKS   16
 Bank slots of gaHds and gaBds.
#define HSYN_NOTES   50
 Notes the synthesiser can have sounding at once.
#define HSYN_CORES   2
 SPU2 cores, each with its own voices.
#define HSYN_VOICES_PER_CORE   24
 Voices of one SPU2 core.
#define HSYN_SLAVE_VOICE   255
 sSynNote::slave value that marks the second voice of a chorus pair.
#define HD_VAG_LOOPED   1
 sHdVagInfo::attribute value of a looping VAG.

Enumerations

enum  { HSYN_NOTE_ON = 0x01 , HSYN_NOTE_NEW = 0x02 , HSYN_NOTE_LOOPED = 0x04 , HSYN_NOTE_RELEASED = 0x08 }
 Bits of sSynNote::flag. More...
enum  { HSYN_FX_KEEP_PAN = 0x01 , HSYN_FX_CHORUS = 0x04 }
 Bits of sSynNote::fx. More...
enum  {
  HSYN_CHAN_FX_KEEP_PAN = 0x01 , HSYN_CHAN_FX_SMOOTH_VOL = 0x02 , HSYN_CHAN_FX_CHORUS = 0x04 , HSYN_CHAN_FX_CORE1_EFFECT = 0x10 ,
  HSYN_CHAN_FX_CORE0_EFFECT = 0x20
}
 Bits of sSynChannel::iFx, each switched by one MIDI controller. More...

Functions

void _build_chorus (int iDepth)
 Fill the quarter-sine chorus curve.
int HandleTransIntr (int ch, void *common)
 Count one completed SPU2 transfer.
int MemCpy_IOPtoSPU (void *pIOP, void *pSPU, int iBlockSize)
 Copy IOP memory to SPU2 memory and wait for the transfer to end.
int StartAutoDMA (void *pIOP, void *pSPU, int iDirection)
 Start an automatic DMA stream.
int StopAutoDMA (void *pIOP, void *pSPU, int iDirection)
 Stop an automatic DMA stream.
void _init_channels (void)
 Reset every channel to its default MIDI state.
void _init_banks (void)
 Detach every bank slot.
void hs_prog_change (int iChan, int iProg)
 Select a channel's program.
int get_free_slot (int which_core)
 Find a free voice, starting after the one handed out last on each core.
int _note_2_pitch (int base_note, int new_note, int detune, int samp_rate)
 Convert a note to a pitch register value for a sample.
int _apply_channel_to_note (sSynNote *pNote, int do_set)
 Recompute a note's volume and pitch from its channel.
int _fire_off_sample (int iSamp, int iNote, int iChan, int iVol, sHdProgram *pProgOffs, sHdSplit *pSplitOffs, int xflags)
 Key on one sample of a program on a new voice.
int hs_note_on (int iChan, int iNote, int iVol)
 Start a note on a channel.
int hs_kill_idx (sSynNote *pNote, int iAlreadyOff)
 Silence a note at once and release its voice.
int hs_idx_off (int noteidx)
 Key off a note by index.
int hs_note_off (int iChan, int iNote)
 Key off the note playing on a channel, with its chorus voice.
int hs_check_playing (sSynNote *pNote)
 Release a note whose voice has fallen silent.
unsigned short _apply_chorus (unsigned short c_pitch, unsigned short rate, unsigned short depth, unsigned short *pos)
 Advance a chorus position and apply it to a pitch.
int hs_update_note_and_fx (sSynNote *pNote)
 Apply one tick of channel changes, chorus, and volume slides to a note.
int hs_reapply_channel (int iChan)
 Recompute and write every note of a channel.
int ShowSynthState (int iFlags)
 Print the synthesiser state.
void ResetSynthState (void)
 Reset every program, voice, channel, and bank slot.
void _do_reg_out (void)
 Write the key-on, key-off, and changed voice mix switches of both cores.
void HardSynthAllNotesOff (int iChan, int do_now)
 Silence the notes of a channel.
unsigned char * HandleMidiMessage (unsigned char *pMidiMsg)
 Act on one MIDI channel message.
int HardSynthLoadBD (int ipBd, int ipSpu, int iSize)
 Copy a bank body to SPU2 memory.
int HardSynthAttachHDtoBD (int port, int ipHd, int ipSpu, int bank)
 Attach a bank header and its body to a bank slot.
int HardSynthInvalidateBank (int bank)
 Detach a bank slot and silence its notes.
void HardSynthInvalidateHd (unsigned char *pHd)
 Detach the bank slot that uses a header.
int HardSynthClearHDBD (void)
 Clear the flag an attached bank sets.
void MidiBufferSetup (void)
 Empty the MIDI stream buffers.
int HardSynthKillOld (void)
 Release every note whose voice has fallen silent.
int HardSynthUpdate (void)
 Apply one tick of updates to every sounding note.
int HardSynthParseNew (unsigned char *pMidiBlock, int iBlockSize, int buf)
 Act on a block of MIDI messages.
int HardSynthPause (void)
 Stop the pitch of every note on the channels pausing affects.
int HardSynthResume (void)
 Restore the pitch of every note HardSynthPause() stopped.
int HardSynthSetRemix (int parm)
 Switch remix mode.
int HardSynthSetMono (int parm)
 Switch mono output and recompute every channel.
void HardSynthConfig (sSynthConfig *pConfig)
 Replace the settings and recompute the chorus rates.
int HardSynthInit (void)
 Initialise the synthesiser, start its tick thread, and start the tick timer.
int HardSynthReset (void)
 Reset the synthesiser state.
int HardSynthShutdown (void)
 Stop and release the tick timer.
void HardSynthInfo (int what)
 Handle a diagnostic request.

Variables

unsigned char * gpHd
 Bank header of the note being started.
unsigned char * gpBd
 SPU2 address of the bank body of the note being started.
unsigned char * gaHds [HSYN_BANKS]
 Bank headers by bank slot.
unsigned char * gaBds [HSYN_BANKS]
 SPU2 addresses of the bank bodies by bank slot.
sSynChannel gChan [HSYN_CHANNELS]
 Channel state.
int voice_alloc [HSYN_CORES]
 Voices in use, one bit per voice and one word per core.
sSynNote gCurrentNotes [HSYN_NOTES]
 Sounding notes.
int gEndX [HSYN_CORES]
 Voices whose sample has ended, one word per core, read each tick.
int gVMixL [HSYN_CORES]
 Dry left mix switches read from the SPU2 each tick, one word per core.
int gVMixR [HSYN_CORES]
 Dry right mix switches read from the SPU2 each tick, one word per core.
int gVMixEL [HSYN_CORES]
 Effect left mix switches read from the SPU2 each tick, one word per core.
int gVMixER [HSYN_CORES]
 Effect right mix switches read from the SPU2 each tick, one word per core.
int gReg_VMixL [HSYN_CORES]
 Dry left mix switches to write at the end of the tick, one word per core.
int gReg_VMixR [HSYN_CORES]
 Dry right mix switches to write at the end of the tick, one word per core.
int gReg_VMixEL [HSYN_CORES]
 Effect left mix switches to write at the end of the tick, one word per core.
int gReg_VMixER [HSYN_CORES]
 Effect right mix switches to write at the end of the tick, one word per core.
int rate_L
 Left chorus rate.
int rate_R
 Right chorus rate.

Macro Definition Documentation

◆ HSYN_CHANNELS

#define HSYN_CHANNELS   16

The hardware synthesiser of the EZMIDI IOP module, from midi_hsyn.c.

The layouts and names follow the stabs the shipped EZMIDI.IRX records. Addresses in the comments below are offsets into EZMIDI.IRX. MIDI channels the synthesiser tracks.

◆ HSYN_BANKS

#define HSYN_BANKS   16

Bank slots of gaHds and gaBds.

◆ HSYN_NOTES

#define HSYN_NOTES   50

Notes the synthesiser can have sounding at once.

◆ HSYN_CORES

#define HSYN_CORES   2

SPU2 cores, each with its own voices.

◆ HSYN_VOICES_PER_CORE

#define HSYN_VOICES_PER_CORE   24

Voices of one SPU2 core.

◆ HSYN_SLAVE_VOICE

#define HSYN_SLAVE_VOICE   255

sSynNote::slave value that marks the second voice of a chorus pair.

◆ HD_VAG_LOOPED

#define HD_VAG_LOOPED   1

sHdVagInfo::attribute value of a looping VAG.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Bits of sSynNote::flag.

Enumerator
HSYN_NOTE_ON 

The note has a voice assigned.

HSYN_NOTE_NEW 

The voice was keyed on since the last tick.

HSYN_NOTE_LOOPED 

The sample loops. Its end flag is not a release.

HSYN_NOTE_RELEASED 

The voice has been keyed off.

◆ anonymous enum

anonymous enum

Bits of sSynNote::fx.

Enumerator
HSYN_FX_KEEP_PAN 

The note retains its pan in remix mode.

HSYN_FX_CHORUS 

The note is one voice of a chorus pair.

◆ anonymous enum

anonymous enum

Bits of sSynChannel::iFx, each switched by one MIDI controller.

Enumerator
HSYN_CHAN_FX_KEEP_PAN 

Controller 89 retains note pan in remix mode.

HSYN_CHAN_FX_SMOOTH_VOL 

Controller 80 makes volume changes slide.

HSYN_CHAN_FX_CHORUS 

Controller 81 makes each note play a detuned pair.

HSYN_CHAN_FX_CORE1_EFFECT 

Controller 83 moves notes to core 1 and its effect.

HSYN_CHAN_FX_CORE0_EFFECT 

Controller 82 moves notes to core 0 and its effect.

Function Documentation

◆ _build_chorus()

void _build_chorus ( int iDepth)

Fill the quarter-sine chorus curve.

Parameters
iDepthIgnored.
Ghidra address:
NTSC-U/C: 0x0668
Ghidra address:
PAL: 0x0668

◆ HandleTransIntr()

int HandleTransIntr ( int ch,
void * common )

Count one completed SPU2 transfer.

Parameters
chTransfer channel.
commonCounter to increment.
Returns
One.
Ghidra address:
NTSC-U/C: 0x0868
Ghidra address:
PAL: 0x0868

◆ MemCpy_IOPtoSPU()

int MemCpy_IOPtoSPU ( void * pIOP,
void * pSPU,
int iBlockSize )

Copy IOP memory to SPU2 memory and wait for the transfer to end.

Parameters
pIOPIOP source.
pSPUSPU2 destination.
iBlockSizeByte count.
Returns
Zero.
Ghidra address:
NTSC-U/C: 0x08c8
Ghidra address:
PAL: 0x08c8

◆ StartAutoDMA()

int StartAutoDMA ( void * pIOP,
void * pSPU,
int iDirection )

Start an automatic DMA stream.

Not implemented.

Parameters
pIOPIgnored.
pSPUIgnored.
iDirectionIgnored.
Returns
-1.
Ghidra address:
NTSC-U/C: 0x0954
Ghidra address:
PAL: 0x0954

◆ StopAutoDMA()

int StopAutoDMA ( void * pIOP,
void * pSPU,
int iDirection )

Stop an automatic DMA stream.

Not implemented.

Parameters
pIOPIgnored.
pSPUIgnored.
iDirectionIgnored.
Returns
-1.
Ghidra address:
NTSC-U/C: 0x098c
Ghidra address:
PAL: 0x098c

◆ _init_channels()

void _init_channels ( void )

Reset every channel to its default MIDI state.

Ghidra address:
NTSC-U/C: 0x09c4
Ghidra address:
PAL: 0x09c4

◆ _init_banks()

void _init_banks ( void )

Detach every bank slot.

Ghidra address:
NTSC-U/C: 0x0b4c
Ghidra address:
PAL: 0x0b4c

◆ hs_prog_change()

void hs_prog_change ( int iChan,
int iProg )

Select a channel's program.

Parameters
iChanChannel.
iProgProgram.
Ghidra address:
NTSC-U/C: 0x0be4
Ghidra address:
PAL: 0x0be4

◆ get_free_slot()

int get_free_slot ( int which_core)

Find a free voice, starting after the one handed out last on each core.

Parameters
which_coreCore, or -1 for either.
Returns
The voice slot, or -1 when every voice is in use.
Ghidra address:
NTSC-U/C: 0x0c2c
Ghidra address:
PAL: 0x0c2c

◆ _note_2_pitch()

int _note_2_pitch ( int base_note,
int new_note,
int detune,
int samp_rate )

Convert a note to a pitch register value for a sample.

Parameters
base_noteNote that plays at the recorded rate.
new_noteNote to play.
detuneFine tuning.
samp_rateRecorded rate in hertz.
Returns
The pitch register value, limited to the largest the SPU2 accepts.
Ghidra address:
NTSC-U/C: 0x1c44
Ghidra address:
PAL: 0x1c44

◆ _apply_channel_to_note()

int _apply_channel_to_note ( sSynNote * pNote,
int do_set )

Recompute a note's volume and pitch from its channel.

Parameters
pNoteNote.
do_setNonzero to write the registers now.
Returns
Nonzero when the pitch or the target volume changed.
Ghidra address:
NTSC-U/C: 0x1d14
Ghidra address:
PAL: 0x1d14

◆ _fire_off_sample()

int _fire_off_sample ( int iSamp,
int iNote,
int iChan,
int iVol,
sHdProgram * pProgOffs,
sHdSplit * pSplitOffs,
int xflags )

Key on one sample of a program on a new voice.

Parameters
iSampSample index.
iNoteNote.
iChanChannel.
iVolVelocity.
pProgOffsProgram record.
pSplitOffsKey split, or null.
xflagsOne for the second voice of a chorus pair.
Returns
The note index, or a negative error code.
Ghidra address:
NTSC-U/C: 0x2240
Ghidra address:
PAL: 0x2240

◆ hs_note_on()

int hs_note_on ( int iChan,
int iNote,
int iVol )

Start a note on a channel.

Parameters
iChanChannel.
iNoteNote.
iVolVelocity.
Returns
The note index, or a negative error code.
Ghidra address:
NTSC-U/C: 0x2c6c
Ghidra address:
PAL: 0x2c6c

◆ hs_kill_idx()

int hs_kill_idx ( sSynNote * pNote,
int iAlreadyOff )

Silence a note at once and release its voice.

Parameters
pNoteNote.
iAlreadyOffNonzero when the voice is already keyed off.
Returns
Zero, or -1 when the note was not sounding.
Ghidra address:
NTSC-U/C: 0x3250
Ghidra address:
PAL: 0x3250

◆ hs_idx_off()

int hs_idx_off ( int noteidx)

Key off a note by index.

Parameters
noteidxNote index.
Returns
Zero, or -1 when the note was not sounding.
Ghidra address:
NTSC-U/C: 0x33cc
Ghidra address:
PAL: 0x33cc

◆ hs_note_off()

int hs_note_off ( int iChan,
int iNote )

Key off the note playing on a channel, with its chorus voice.

Parameters
iChanChannel.
iNoteNote.
Returns
Zero, or -1 when the note is not playing.
Ghidra address:
NTSC-U/C: 0x34e0
Ghidra address:
PAL: 0x34e0

◆ hs_check_playing()

int hs_check_playing ( sSynNote * pNote)

Release a note whose voice has fallen silent.

Parameters
pNoteNote.
Returns
Zero, or -1 when the note was released.
Ghidra address:
NTSC-U/C: 0x3654
Ghidra address:
PAL: 0x3654

◆ _apply_chorus()

unsigned short _apply_chorus ( unsigned short c_pitch,
unsigned short rate,
unsigned short depth,
unsigned short * pos )

Advance a chorus position and apply it to a pitch.

Parameters
c_pitchPitch register value.
rateCurve step.
depthPitch range.
posCurve position to advance.
Returns
The pitch register value with the chorus applied.
Ghidra address:
NTSC-U/C: 0x4334
Ghidra address:
PAL: 0x4334

◆ hs_update_note_and_fx()

int hs_update_note_and_fx ( sSynNote * pNote)

Apply one tick of channel changes, chorus, and volume slides to a note.

Parameters
pNoteNote.
Returns
Zero.
Ghidra address:
NTSC-U/C: 0x43f8
Ghidra address:
PAL: 0x43f8

◆ hs_reapply_channel()

int hs_reapply_channel ( int iChan)

Recompute and write every note of a channel.

Parameters
iChanChannel, or -1 for every channel.
Returns
Zero.
Ghidra address:
NTSC-U/C: 0x4654
Ghidra address:
PAL: 0x4654

◆ ShowSynthState()

int ShowSynthState ( int iFlags)

Print the synthesiser state.

Empty in the shipped module.

Parameters
iFlagsSections to print.
Returns
Zero.
Ghidra address:
NTSC-U/C: 0x477c
Ghidra address:
PAL: 0x477c

◆ ResetSynthState()

void ResetSynthState ( void )

Reset every program, voice, channel, and bank slot.

Ghidra address:
NTSC-U/C: 0x47ac
Ghidra address:
PAL: 0x47ac

◆ _do_reg_out()

void _do_reg_out ( void )

Write the key-on, key-off, and changed voice mix switches of both cores.

Ghidra address:
NTSC-U/C: 0x4840
Ghidra address:
PAL: 0x4840

◆ HardSynthAllNotesOff()

void HardSynthAllNotesOff ( int iChan,
int do_now )

Silence the notes of a channel.

Parameters
iChanChannel, or -1 for every channel.
do_nowNonzero to read and write the SPU2 switches around the change.
Ghidra address:
NTSC-U/C: 0x4bf4
Ghidra address:
PAL: 0x4bf4

◆ HandleMidiMessage()

unsigned char * HandleMidiMessage ( unsigned char * pMidiMsg)

Act on one MIDI channel message.

Parameters
pMidiMsgMessage.
Returns
The next message.
Ghidra address:
NTSC-U/C: 0x4d70
Ghidra address:
PAL: 0x4d70

◆ HardSynthLoadBD()

int HardSynthLoadBD ( int ipBd,
int ipSpu,
int iSize )

Copy a bank body to SPU2 memory.

Parameters
ipBdIOP address of the body.
ipSpuSPU2 address.
iSizeByte count.
Returns
Zero.
Ghidra address:
NTSC-U/C: 0x5744
Ghidra address:
PAL: 0x5744

◆ HardSynthAttachHDtoBD()

int HardSynthAttachHDtoBD ( int port,
int ipHd,
int ipSpu,
int bank )

Attach a bank header and its body to a bank slot.

Parameters
portIgnored.
ipHdIOP address of the header.
ipSpuSPU2 address of the body.
bankBank slot.
Returns
Zero, or -1 for an invalid slot.
Ghidra address:
NTSC-U/C: 0x579c
Ghidra address:
PAL: 0x579c

◆ HardSynthInvalidateBank()

int HardSynthInvalidateBank ( int bank)

Detach a bank slot and silence its notes.

Parameters
bankBank slot.
Returns
Zero, or -1 when the slot was empty.
Ghidra address:
NTSC-U/C: 0x586c
Ghidra address:
PAL: 0x586c

◆ HardSynthInvalidateHd()

void HardSynthInvalidateHd ( unsigned char * pHd)

Detach the bank slot that uses a header.

Parameters
pHdIOP address of the header.
Ghidra address:
NTSC-U/C: 0x5a28
Ghidra address:
PAL: 0x5a28

◆ HardSynthClearHDBD()

int HardSynthClearHDBD ( void )

Clear the flag an attached bank sets.

Returns
Zero, or -1 when no bank was attached since the last call.
Ghidra address:
NTSC-U/C: 0x5acc
Ghidra address:
PAL: 0x5acc

◆ MidiBufferSetup()

void MidiBufferSetup ( void )

Empty the MIDI stream buffers.

Ghidra address:
NTSC-U/C: 0x5b20
Ghidra address:
PAL: 0x5b20

◆ HardSynthKillOld()

int HardSynthKillOld ( void )

Release every note whose voice has fallen silent.

Returns
Zero.
Ghidra address:
NTSC-U/C: 0x5b7c
Ghidra address:
PAL: 0x5b7c

◆ HardSynthUpdate()

int HardSynthUpdate ( void )

Apply one tick of updates to every sounding note.

Returns
Zero.
Ghidra address:
NTSC-U/C: 0x5c54
Ghidra address:
PAL: 0x5c54

◆ HardSynthParseNew()

int HardSynthParseNew ( unsigned char * pMidiBlock,
int iBlockSize,
int buf )

Act on a block of MIDI messages.

Parameters
pMidiBlockMessages.
iBlockSizeByte count.
bufIgnored.
Returns
Zero.
Ghidra address:
NTSC-U/C: 0x5d34
Ghidra address:
PAL: 0x5d34

◆ HardSynthPause()

int HardSynthPause ( void )

Stop the pitch of every note on the channels pausing affects.

Returns
Zero, or one when already paused.
Ghidra address:
NTSC-U/C: 0x6390
Ghidra address:
PAL: 0x6390

◆ HardSynthResume()

int HardSynthResume ( void )

Restore the pitch of every note HardSynthPause() stopped.

Returns
Zero, or -1 when not paused.
Ghidra address:
NTSC-U/C: 0x64e0
Ghidra address:
PAL: 0x64e0

◆ HardSynthSetRemix()

int HardSynthSetRemix ( int parm)

Switch remix mode.

Parameters
parmNonzero to enable.
Returns
Zero.
Ghidra address:
NTSC-U/C: 0x6660
Ghidra address:
PAL: 0x6660

◆ HardSynthSetMono()

int HardSynthSetMono ( int parm)

Switch mono output and recompute every channel.

Parameters
parmNonzero to enable.
Returns
Zero.
Ghidra address:
NTSC-U/C: 0x66a4
Ghidra address:
PAL: 0x66a4

◆ HardSynthConfig()

void HardSynthConfig ( sSynthConfig * pConfig)

Replace the settings and recompute the chorus rates.

Parameters
pConfigNew settings, or null to retain the current settings.
Ghidra address:
NTSC-U/C: 0x66f4
Ghidra address:
PAL: 0x66f4

◆ HardSynthInit()

int HardSynthInit ( void )

Initialise the synthesiser, start its tick thread, and start the tick timer.

Returns
The IOP address of the MIDI stream buffers the EE writes to.
Ghidra address:
NTSC-U/C: 0x6800
Ghidra address:
PAL: 0x6800

◆ HardSynthReset()

int HardSynthReset ( void )

Reset the synthesiser state.

Returns
Zero.
Ghidra address:
NTSC-U/C: 0x68d0
Ghidra address:
PAL: 0x68d0

◆ HardSynthShutdown()

int HardSynthShutdown ( void )

Stop and release the tick timer.

Returns
Zero.
Ghidra address:
NTSC-U/C: 0x690c
Ghidra address:
PAL: 0x690c

◆ HardSynthInfo()

void HardSynthInfo ( int what)

Handle a diagnostic request.

Parameters
whatZero or one to print the state, two to switch mono output.
Ghidra address:
NTSC-U/C: 0x6960
Ghidra address:
PAL: 0x6960

Variable Documentation

◆ gpHd

unsigned char* gpHd
extern

Bank header of the note being started.

◆ gpBd

unsigned char* gpBd
extern

SPU2 address of the bank body of the note being started.

◆ gaHds

unsigned char* gaHds[HSYN_BANKS]
extern

Bank headers by bank slot.

◆ gaBds

unsigned char* gaBds[HSYN_BANKS]
extern

SPU2 addresses of the bank bodies by bank slot.

◆ gChan

sSynChannel gChan[HSYN_CHANNELS]
extern

Channel state.

◆ voice_alloc

int voice_alloc[HSYN_CORES]
extern

Voices in use, one bit per voice and one word per core.

◆ gCurrentNotes

sSynNote gCurrentNotes[HSYN_NOTES]
extern

Sounding notes.

◆ gEndX

int gEndX[HSYN_CORES]
extern

Voices whose sample has ended, one word per core, read each tick.

◆ gVMixL

int gVMixL[HSYN_CORES]
extern

Dry left mix switches read from the SPU2 each tick, one word per core.

◆ gVMixR

int gVMixR[HSYN_CORES]
extern

Dry right mix switches read from the SPU2 each tick, one word per core.

◆ gVMixEL

int gVMixEL[HSYN_CORES]
extern

Effect left mix switches read from the SPU2 each tick, one word per core.

◆ gVMixER

int gVMixER[HSYN_CORES]
extern

Effect right mix switches read from the SPU2 each tick, one word per core.

◆ gReg_VMixL

int gReg_VMixL[HSYN_CORES]
extern

Dry left mix switches to write at the end of the tick, one word per core.

◆ gReg_VMixR

int gReg_VMixR[HSYN_CORES]
extern

Dry right mix switches to write at the end of the tick, one word per core.

◆ gReg_VMixEL

int gReg_VMixEL[HSYN_CORES]
extern

Effect left mix switches to write at the end of the tick, one word per core.

◆ gReg_VMixER

int gReg_VMixER[HSYN_CORES]
extern

Effect right mix switches to write at the end of the tick, one word per core.

◆ rate_L

int rate_L
extern

Left chorus rate.

The module never reads it.

◆ rate_R

int rate_R
extern

Right chorus rate.

The module never reads it.