Přeskočit obsah

C_MUSICSYS_CFG Daedalus class

Class C_MUSICSYS_CFG defines the global settings for the game's music1.

Danger

An instance of this class is declared only once and should be named musicSysConfig.

Definition

Class definition as it is defined in Scripts/System/_intern/Music.d script file.

1
2
3
4
5
6
7
8
9
class C_MusicSys_CFG
{
    var float volume;              // Music volume
    var int   bitResolution;       // Sound quality
    var int   globalReverbEnabled; // Enable global reverb
    var int   sampleRate;          // Frequency
    var int   numChannels;         // Sound channels
    var int   reverbBufferSize;    // Reverb buffer size
};

Members

float volume

The overall volume of the background music (soundtrack). From 0.0 to 1.0.

int bitResolution

Sound quality. 8 or 16 bit.

int globalReverbEnabled

Enable global reverb.

int sampleRate

Frequency. From 11050 to 44100.

int numChannels

Number of sound channels. From 16 to 32.

int reverbBufferSize

The size of the reverb buffer.


  1. Heavily inspired by the amazing documentation site Gothic library