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

A program loaded into a bank, linked to its run of sample descriptors. More...

#include <bankprogram.h>

Inheritance diagram for BankProgram:
Collaboration diagram for BankProgram:

Public Member Functions

void Init ()
 Reset the program and clear its descriptors.
Public Member Functions inherited from Program
 Program ()
 Construct a program with the defaults Init() sets.
void Init ()
 Reset every field to its default.
int Unpack (const unsigned char *data)
 Read the program from a serialised record.
int Pack (unsigned char *data) const
 Write the program as a serialised record of the current version.
int PackedSize () const
 Report the size of a serialised record of the current version.

Public Attributes

BankSampleDesc ** mSampleDescs
 The program's first descriptor in the bank's table, followed by the rest of its run.
Public Attributes inherited from Program
unsigned short mProgram
unsigned char mPan
unsigned char mVolume
signed char mTranspose
signed char mFineTranspose
unsigned short mNumSampleDescs

Detailed Description

A program loaded into a bank, linked to its run of sample descriptors.

The class has no RTTI, and its name is inferred from its role. The program pool hands out raw storage. The constructor never runs, and Init() prepares each program.

Member Function Documentation

◆ Init()

void BankProgram::Init ( )

Reset the program and clear its descriptors.

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

Member Data Documentation

◆ mSampleDescs

BankSampleDesc** BankProgram::mSampleDescs

The program's first descriptor in the bank's table, followed by the rest of its run.


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