OpenTTD Source: DLSFile Struct Reference

OpenTTD Source 14.0-beta3

Data Structures | Public Member Functions | Data Fields | Private Member Functions
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 wchar_t *file)
| Try loading a DLS file into memory.

## Data Fields
std::vector< DLSInstrument > | instruments
std::vector< POOLCUE > | pool_cues
std::vector< DLSWave > | waves

## Private Member Functions
bool | ReadDLSArticulation (FILE *f, DWORD list_length, std::vector< CONNECTION > &out)
| Load an articulation structure from a DLS file.
bool | ReadDLSRegionList (FILE *f, DWORD list_length, DLSInstrument &instrument)
| Load a list of regions from a DLS file.
bool | ReadDLSRegion (FILE *f, DWORD list_length, std::vector< DLSRegion > &out)
| Load a single region from a DLS file.
bool | ReadDLSInstrumentList (FILE *f, DWORD list_length)
| Load a list of instruments from a DLS file.
bool | ReadDLSInstrument (FILE *f, DWORD list_length)
| Load a single instrument from a DLS file.
bool | ReadDLSWaveList (FILE *f, DWORD list_length)
| Load a list of waves from a DLS file.
bool | ReadDLSWave (FILE *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:

- src/music/dmusic.cpp