OpenTTD Source  20241121-master-g67a0fccfad
DLSFile Struct Reference

A DLS file. More...

Data Structures

struct  DLSInstrument
 Instrument definition read from a DLS file. More...
 
struct  DLSRegion
 An instrument region maps a note range to wave data. More...
 
struct  DLSWave
 Wave data definition from a DLS file. More...
 

Public Member Functions

bool LoadFile (const std::string &file)
 Try loading a DLS file into memory.
 

Data Fields

std::vector< DLSInstrumentinstruments
 
std::vector< POOLCUE > pool_cues
 
std::vector< DLSWavewaves
 

Private Member Functions

bool ReadDLSArticulation (FileHandle &f, DWORD list_length, std::vector< CONNECTION > &out)
 Load an articulation structure from a DLS file.
 
bool ReadDLSRegionList (FileHandle &f, DWORD list_length, DLSInstrument &instrument)
 Load a list of regions from a DLS file.
 
bool ReadDLSRegion (FileHandle &f, DWORD list_length, std::vector< DLSRegion > &out)
 Load a single region from a DLS file.
 
bool ReadDLSInstrumentList (FileHandle &f, DWORD list_length)
 Load a list of instruments from a DLS file.
 
bool ReadDLSInstrument (FileHandle &f, DWORD list_length)
 Load a single instrument from a DLS file.
 
bool ReadDLSWaveList (FileHandle &f, DWORD list_length)
 Load a list of waves from a DLS file.
 
bool ReadDLSWave (FileHandle &f, DWORD list_length, long offset)
 Load a single wave from a DLS file.
 

Detailed Description

A DLS file.

Definition at line 45 of file dmusic.cpp.


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