wavelength 1.0.0
Loading...
Searching...
No Matches
SynthServer Class Reference

The synthesiser's SIF RPC server, identifier 0x75433178. More...

#include <synthserver.h>

Static Public Member Functions

static void Thread ()
 Register the server and serve calls forever, as the server thread.
static void Remove ()
 Unregister the server and its queue.
static void * Dispatch (unsigned int command, void *buffer, int size)
 Run one command.
static int Initialize (const SynthInitCommand *command)
 Start the reverb thread, record the EE's notification addresses, and start the synthesiser and its tick thread.
static int Terminate ()
 Stop the tick thread and free the bank pools.

Static Public Attributes

static constexpr unsigned int kServerId = 0x75433178
static constexpr int kBufferSize = 65536

Detailed Description

The synthesiser's SIF RPC server, identifier 0x75433178.

The class has no RTTI, and its name is inferred from its role. Every member is static. The EE calls it with a SynthCommand function number and the command's argument.

Member Function Documentation

◆ Thread()

void SynthServer::Thread ( )
static

Register the server and serve calls forever, as the server thread.

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

◆ Remove()

void SynthServer::Remove ( )
static

Unregister the server and its queue.

It is never called.

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

◆ Dispatch()

void * SynthServer::Dispatch ( unsigned int command,
void * buffer,
int size )
static

Run one command.

Parameters
commandA SynthCommand.
bufferThe command's argument.
sizeBytes of argument.
Returns
The command's status word as the reply buffer. Every command reports zero.
Ghidra address:
NTSC-U/C: 0x00000310
Ghidra address:
PAL: 0x00000310

◆ Initialize()

int SynthServer::Initialize ( const SynthInitCommand * command)
static

Start the reverb thread, record the EE's notification addresses, and start the synthesiser and its tick thread.

Parameters
commandThe command's argument.
Returns
Zero.
Ghidra address:
NTSC-U/C: 0x00000640
Ghidra address:
PAL: 0x00000640

◆ Terminate()

int SynthServer::Terminate ( )
static

Stop the tick thread and free the bank pools.

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

Member Data Documentation

◆ kServerId

unsigned int SynthServer::kServerId = 0x75433178
staticconstexpr

The server identifier.

◆ kBufferSize

int SynthServer::kBufferSize = 65536
staticconstexpr

Bytes of argument a call can include.


The documentation for this class was generated from the following file: