ScummVM API documentation
AdLibBnkInstrumentDefinition Struct Reference

#include <adlib_ms.h>

Public Member Functions

void toOplInstrumentDefinition (OplInstrumentDefinition &instrumentDef)
 

Public Attributes

uint8 instrumentType
 
uint8 rhythmVoiceNumber
 
AdLibBnkInstrumentOperatorDefinition operator0
 
AdLibBnkInstrumentOperatorDefinition operator1
 
uint8 waveformSelect0
 
uint8 waveformSelect1
 

Detailed Description

Instrument definition for an OPL2 chip in the format used by the AdLib BNK instrument bank file format.

Member Function Documentation

◆ toOplInstrumentDefinition()

void AdLibBnkInstrumentDefinition::toOplInstrumentDefinition ( OplInstrumentDefinition instrumentDef)

Copies the data in this AdLib BNK instrument definition to the specified OplInstrumentDefinition struct.

Parameters
instrumentDefThe instrument definition to which the data should be copied.

Member Data Documentation

◆ instrumentType

uint8 AdLibBnkInstrumentDefinition::instrumentType

The type of instrument (0x00: melodic, 0x01: rhythm).

◆ rhythmVoiceNumber

uint8 AdLibBnkInstrumentDefinition::rhythmVoiceNumber

TODO Unclear what this represents; might be the same as rhythmNote.

◆ operator0

AdLibBnkInstrumentOperatorDefinition AdLibBnkInstrumentDefinition::operator0

Operator data.

◆ waveformSelect0

uint8 AdLibBnkInstrumentDefinition::waveformSelect0

Waveform select parameter for each operator.


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