Skip to content

C_MUSICSYS_CFG Daedalus class

Acknowledgment

Heavily inspired by the amazing documentation site Gothic library

Class C_MusicSys_CFG defines the global settings for the game's music.

An instance of this class is declared only once.

Class definition

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

C_MusicSys_CFG Daedalus class
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
};

Class members

Variable Type Description
volume float Overall game music volume
bitResolution int Sound quality
globalReverbEnabled int Enable global reverb
sampleRate int Frequency
numChannels int Number of sound chanells
reverbBufferSize int The size of reverb buffer

Class member overview

Description of the class member variables.

volume

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

bitResolution

Sound quality. 8 or 16 bit.

globalReverbEnabled

Enable global reverb.

sampleRate

Frequency. From 11050 to 44100.

numChannels

Number of sound channels. From 16 to 32.

reverbBufferSize

The size of the reverb buffer.