|
| void * | operator new (size_t nSize) |
| | Allocate the object from the pool heaps under the tag "SynthPs2".
|
| void | operator delete (void *pBlock) |
| | Return the object to the pool heaps.
|
| | SynthPS2 () |
| | Build the output with every bank slot empty and the command buffers ready.
|
| | ~SynthPS2 () override |
| | Release the command buffers.
|
| int | Init () override |
| | Read the lag, bind to the IOP modules, and start them.
|
| int | Terminate () override |
| | Stop the synthesiser module.
|
| void | ResetSpu () override |
| | Queue a reset of the sound processor.
|
| int | SendPackedMessage (unsigned int nPacked) override |
| | Send one packed message.
|
| int | SendMessage (unsigned char nByte0, unsigned char nByte1, unsigned char nByte2, int nByte3) override |
| | Send one message, or act on it at once.
|
| void | UpdateTime () override |
| | Read the system clock and shorten the delays of the queued messages by the time passed.
|
| int | Poll () override |
| | Run the frame's work and send the command buffers to the IOP modules.
|
| StreamPlayer * | GetStream () override |
| | Report the stream SetStream() set.
|
| void | SetStream (StreamPlayer *pStream) override |
| | Set the stream the output plays, and end the stream the software effect played.
|
| void | SendStreamData (const void *pData, int nSize) override |
| | Queue a run of stream data for the software effect and clear the room it reported.
|
| int | GetStreamStatus () override |
| | Report the room the software effect has for stream data.
|
| int | GetStreamFormat (int *pnRate, int *pnBlock) override |
| | Report the format of the stream data.
|
| int | Partition (const std::vector< int > &blocks) override |
| | Queue the division of the sound memory among the bank slots.
|
| int | GetBankBlockCount (const String &file) override |
| | Report the size of the audio data file of a bank in 64-byte blocks, rounded up.
|
| bool | IsBankLoaded (unsigned short nSlot) override |
| | Report whether a slot has a bank and no load into it is waiting.
|
| int | IsBankPresent (unsigned short nSlot) override |
| | Report whether a slot has a bank or a load into it is waiting.
|
| int | LoadBank (unsigned short nSlot, const String &file, bool bSkipPending) override |
| | Queue the load of a bank file into a slot.
|
| int | UnloadBank (unsigned short nSlot) override |
| | Empty a slot, or cancel the load into it.
|
| void | SetSurround (bool bSurround) override |
| | Choose whether the synthesiser may invert a channel for surround decoders.
|
| void | SetMono (bool bMono) override |
| | Choose mono output for the synthesiser and the stream.
|
| void | SetLag (float fLag) override |
| | Set the lag of the output.
|
| float | GetLag () override |
| | Report the lag of the output.
|
| void | SetSoftFxSweep (float fPosition) override |
| | Set the position of the sweep of a sweeping software filter.
|
| void | SetSoftFxModulation (float fValue) override |
| | Set the second control of the software effect.
|
| void | SetSoftFxFilter (const SoftFxFilter &filter) override |
| | Select the software effect and record its settings.
|
| int | EnableSoftFx () override |
| | Queue a job that turns the software effects on.
|
| int | DisableSoftFx () override |
| | Queue a job that turns the software effects off.
|
| void | SetOutputLevel (float fLevel) override |
| | Set the volume of the input the software effect captures.
|
| float | GetOutputLevel () override |
| | Report the level SetOutputLevel() set.
|
| void | SetSoftFxInput (int nInput) override |
| | Choose the mixer input of the sound processor that the software effect captures.
|
| void | SetBusToCoreFx (int nOn) override |
| | Set whether the voices feed the hardware effects.
|
| void | SetBusToSoftFx (int nOn) override |
| | Do nothing.
|
| void | SendMessages (const std::vector< unsigned int > &messages) override |
| | Queue a job that sends packed messages to set up the hardware effects.
|
| void | QueueCallback (Callback pfnCallback, int nArg) override |
| | Queue a job that calls a routine once the jobs before it have run.
|
| virtual | ~Synth () |
| | Vtable slot 4.
|
| virtual int | Unsupported () |
| | Vtable slot 7.
|
| virtual void | VirtualSlot35 () |
| | Vtable slot 35.
|
|
| typedef void(* | Callback) (int nArg) |
| | Routine a queued callback job calls with its argument.
|
| static void | TickThread () |
| | The tick thread.
|
| static int | ProcessMidiMessage (unsigned char status, unsigned char data1, unsigned char data2) |
| | Act on one MIDI channel message.
|
| static void | ProcessDueEvents () |
| | Act on every queued MIDI message that is due, as one batch of key changes.
|
| static int | QueueTimedEvents (const MidiEvent *events, unsigned int count) |
| | Queue MIDI messages stamped with delays from now.
|
| static int | ProcessMidiStream (const unsigned char *data, unsigned int size) |
| | Act on a MIDI byte stream with running status.
|
| static void | SetMono (bool mono) |
| | Select mono output.
|
| static void | SetSurround (bool enabled) |
| | Allow or forbid the surround inversion of the descriptors that request it.
|
| static void | ResetAllControllers (unsigned char channel) |
| | Restore a channel's controllers to their defaults, except its monophonic switch.
|
| static void | Init () |
| | Reset the banks, channels, and voices, then the SPU2.
|
| static void | ResetSpu () |
| | Initialise the SPU2: the mixer, the reverb areas and settings, and the voice mix.
|
| static int | CombinePan (unsigned char channelPan, unsigned char programPan, unsigned char samplePan) |
| | Combine three pan offsets around the centre, clamped to zero to 127.
|
| static bool | ChannelHasProgram (unsigned char channel) |
| | Report whether a channel has a program it can play.
|
| static void | NoteOn (unsigned char note, unsigned char velocity, unsigned char channel) |
| | Start a note on every descriptor of the channel's program whose key range covers it.
|
| static void | NoteOff (unsigned char note, unsigned char channel) |
| | Stop the oldest sounding instance of a note.
|
| static void | SelectProgram (unsigned short channel, unsigned short program) |
| | Point a channel at the program of its bank with a program number.
|
| static void | ProgramChange (unsigned char channel, unsigned short program) |
| | Act on a program change unless the channel already plays that program number.
|
| static void | BankSelect (unsigned char channel, unsigned short bank) |
| | Point a channel at a loaded bank, retaining its program number.
|
| static void | UpdateChannelVolume (unsigned char channel) |
| | Rewrite the volume registers of a channel's sounding voices.
|
| static void | SetPan (unsigned char channel, unsigned char pan) |
| | Set a channel's pan.
|
| static void | SetVolume (unsigned char channel, unsigned char volume) |
| | Set a channel's volume.
|
| static void | SetExpression (unsigned char channel, unsigned char expression) |
| | Set a channel's expression.
|
| static void | SetPitchBend (unsigned char channel, signed char semitones, signed char cents) |
| | Set a channel's pitch bend.
|
| static int | LoadBankHeader (const unsigned char *data, unsigned short bank) |
| | Load a bank's header.
|
| static int | LoadPrograms (const unsigned char *data, short size, unsigned short bank) |
| | Load a bank's programs, each record preceded by a size word.
|
| static int | LoadSampleDescs (const unsigned char *data, short size, unsigned short bank) |
| | Load a bank's sample descriptors, each record preceded by a size word.
|
| static int | LoadSamples (const unsigned char *data, short size, unsigned short bank) |
| | Load a bank's samples, each record preceded by a size word.
|
| static int | TransferDone (int channel, void *data) |
| | Notify the EE at the next tick that a waveform transfer ended.
|
| static int | EffectsApplied () |
| | Notify the EE at the next tick that a reverb update ended, when the EE requested it.
|
| static int | TransferSampleData (unsigned char *data, int size, unsigned int offset, unsigned short bank) |
| | Start a waveform transfer into a bank's SPU2 area.
|
| static int | SetBankSpuLayout (const unsigned char *data) |
| | Place the banks' SPU2 areas one after another.
|
| static int | SetBankLoaded (unsigned short bank) |
| | Mark a bank loaded.
|
| static int | UnloadBank (unsigned short bank) |
| | Silence a bank's voices, detach its channels, and empty it.
|
| static void | SetPriority (unsigned char channel, unsigned char priority) |
| | Set a channel's voice priority.
|
| static void | SetDetune (unsigned char channel, unsigned char detune) |
| | Set a channel's detune switch.
|
| static void | SetStereo (unsigned char channel, unsigned char stereo) |
| | Set a channel's stereo switch.
|
| static void | SetMonophonic (unsigned char channel, unsigned char monophonic) |
| | Set a channel's monophonic switch.
|
| static void | SetControllerEnable (unsigned char channel, unsigned char controller, unsigned char value) |
| | Switch the live update of one controller on or off for a channel.
|
| static void | SetTranspose (unsigned char channel, signed char semitones) |
| | Set a channel's transposition.
|
| static void | SetBusMode (unsigned char channel, unsigned char busMode) |
| | Set a channel's dry and reverb mix for later notes.
|
| static void | SetBus (unsigned char channel, unsigned char bus) |
| | Set a channel's preferred core for later notes.
|
| static void | AllNotesOff (unsigned char channel) |
| | Release a channel's notes and forget every retired voice.
|
| static void | EffectThread () |
| | The reverb thread.
|
| static void | SetEffectParam (unsigned char channel, unsigned char value, unsigned char param) |
| | Set one reverb setting of a core from a controller.
|
| static void | CommitKeys () |
| | Key off and then key on every voice the current batch collected.
|
| static void | ClearKeyMasks () |
| | Start a batch of key changes.
|
| static void | Create () |
| | Build TheSynth and initialise it.
|
| static void | Destroy () |
| | Terminate TheSynth, destroy it, and clear the pointer.
|
Sound output of the console, a client of the synth and softfx IOP modules.
The RTTI includes the class name and records Synth as the base. The object is 0x20180 bytes and is 64-byte aligned. Each frame, Poll() runs the queued jobs, advances the bank load, and sends the commands collected in the two command buffers to the modules, each buffer as one concatenated remote call. The synthesiser module plays the MIDI messages and the banks, and the software effect module runs the software filters and plays the stream of a StreamPlayer.