wavelength 1.0.0
Loading...
Searching...
No Matches
BankLoader::PermBankLoader Class Reference

Loader of one permanent bank, bound to a synthesiser bank slot. More...

#include <bankloader.h>

Public Member Functions

 PermBankLoader (unsigned short nSlot, const char *pszFile)
 Construct a loader and query the size of the bank from the synthesiser.
 ~PermBankLoader ()
 Unload the bank when Load() was called.
void Load ()
 Start loading the bank into its slot.
bool IsLoaded () const
 Report whether the bank finished loading.
unsigned short GetSlot () const
int GetBlockCount () const

Detailed Description

Loader of one permanent bank, bound to a synthesiser bank slot.

The RTTI includes the nested name. The class is not polymorphic.

Constructor & Destructor Documentation

◆ PermBankLoader()

BankLoader::PermBankLoader::PermBankLoader ( unsigned short nSlot,
const char * pszFile )

Construct a loader and query the size of the bank from the synthesiser.

Parameters
nSlotThe synthesiser bank slot.
pszFileThe bank file.
Ghidra address:
NTSC-U/C: 0x00151898
Ghidra address:
PAL: 0x001530e0

◆ ~PermBankLoader()

BankLoader::PermBankLoader::~PermBankLoader ( )

Unload the bank when Load() was called.

Ghidra address:
NTSC-U/C: 0x00151908
Ghidra address:
PAL: 0x00153150

Member Function Documentation

◆ Load()

void BankLoader::PermBankLoader::Load ( )

Start loading the bank into its slot.

Ghidra address:
NTSC-U/C: 0x00151980
Ghidra address:
PAL: 0x001531c8

◆ IsLoaded()

bool BankLoader::PermBankLoader::IsLoaded ( ) const

Report whether the bank finished loading.

Returns
Whether Load() was called and the synthesiser reports the slot loaded.
Ghidra address:
NTSC-U/C: 0x001519c8
Ghidra address:
PAL: 0x00153210

◆ GetSlot()

unsigned short BankLoader::PermBankLoader::GetSlot ( ) const
inline
Returns
The synthesiser bank slot.

◆ GetBlockCount()

int BankLoader::PermBankLoader::GetBlockCount ( ) const
inline
Returns
The size the synthesiser reports for the file, or -1.

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