wavelength 1.0.0
Loading...
Searching...
No Matches
synthcommand.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SynthInitCommand
 The argument of kSynthCommandInit. More...
struct  BankDataCommand
 The header of every bank loading command. More...

Enumerations

enum  SynthCommand {
  kSynthCommandInit = 100 , kSynthCommandTerminate = 101 , kSynthCommandSetBankLayout = 102 , kSynthCommandSetBankLoaded = 103 ,
  kSynthCommandUnloadBank = 104 , kSynthCommandTransferSamples = 105 , kSynthCommandLoadBankHeader = 106 , kSynthCommandLoadPrograms = 107 ,
  kSynthCommandLoadSampleDescs = 108 , kSynthCommandLoadSamples = 109 , kSynthCommandQueueEvents = 110 , kSynthCommandMidi = 112 ,
  kSynthCommandConcatenation = 113 , kSynthCommandMono = 114 , kSynthCommandSurround = 115 , kSynthCommandResetSpu = 116
}
 Function numbers of the synthesiser's RPC server. More...

Functions

struct __attribute__ ((packed)) SynthCommandHeader
 The header of each command inside kSynthCommandConcatenation.

Enumeration Type Documentation

◆ SynthCommand

Function numbers of the synthesiser's RPC server.

The names follow kSynthCommandConcatenation, the one name the module records.

Enumerator
kSynthCommandInit 

Start the synthesiser; a SynthInitCommand.

kSynthCommandTerminate 

Stop the tick thread and free the pools.

kSynthCommandSetBankLayout 

Seven size words, one per bank slot.

kSynthCommandSetBankLoaded 

A bank slot as a halfword.

kSynthCommandUnloadBank 

A bank slot as a halfword.

kSynthCommandTransferSamples 

A BankDataCommand followed by waveform data.

kSynthCommandLoadBankHeader 

A BankDataCommand followed by the header.

kSynthCommandLoadPrograms 

A BankDataCommand followed by programs.

kSynthCommandLoadSampleDescs 

A BankDataCommand followed by descriptors.

kSynthCommandLoadSamples 

A BankDataCommand followed by samples.

kSynthCommandQueueEvents 

MidiEvent messages stamped with delays.

kSynthCommandMidi 

A MIDI byte stream to act on at once.

kSynthCommandConcatenation 

Commands, each after a SynthCommandHeader.

kSynthCommandMono 

A word; one selects mono output.

kSynthCommandSurround 

A word; one allows the surround inversion.

kSynthCommandResetSpu 

Initialise the SPU2 again.

Function Documentation

◆ __attribute__()

struct __attribute__ ( (packed) )

The header of each command inside kSynthCommandConcatenation.

Commands follow one another with no padding. A header may sit at any alignment.

< A SynthCommand.

< Bytes of argument after the header.