TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
soundconfig.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <tgfclient.h>
#include <raceinit.h>
#include <graphic.h>
#include <musicplayer/musicplayer.h>
#include <portability.h>
#include "soundconfig.h"
Include dependency graph for soundconfig.cpp:

Go to the source code of this file.

Functions

static void readSoundCfg (void)
static void saveSoundOption (void)
static void changeSoundState (int delta)
static void changeMenuMusicState (void)
static void onActivate (void)
void * SoundMenuInit (void *prevMenu)

Variables

static float LabelColor [] = {1.0, 0.0, 1.0, 1.0}
static const char * soundOptionList []
static const int nbOptions = sizeof(soundOptionList) / sizeof(soundOptionList[0])
static int curOption = 0
static const char * menuMusicList []
static int curOptionMenuMusic = 0
static int SoundOptionId
static int MenuMusicOptionId
static float VolumeValue = 100.0f
static void * scrHandle = NULL
static void * prevHandle = NULL

Function Documentation

◆ changeMenuMusicState()

void changeMenuMusicState ( void )
static

Definition at line 163 of file soundconfig.cpp.

Here is the call graph for this function:

◆ changeSoundState()

void changeSoundState ( int delta)
static

Definition at line 145 of file soundconfig.cpp.

Here is the call graph for this function:

◆ onActivate()

void onActivate ( void )
static

Definition at line 189 of file soundconfig.cpp.

Here is the call graph for this function:

◆ readSoundCfg()

void readSoundCfg ( void )
static

Definition at line 64 of file soundconfig.cpp.

Here is the call graph for this function:

◆ saveSoundOption()

void saveSoundOption ( void )
static

Definition at line 113 of file soundconfig.cpp.

Here is the call graph for this function:

◆ SoundMenuInit()

void * SoundMenuInit ( void * prevMenu)

Definition at line 196 of file soundconfig.cpp.

Here is the call graph for this function:

Variable Documentation

◆ curOption

int curOption = 0
static

Definition at line 42 of file soundconfig.cpp.

◆ curOptionMenuMusic

int curOptionMenuMusic = 0
static

Definition at line 48 of file soundconfig.cpp.

◆ LabelColor

float LabelColor[] = {1.0, 0.0, 1.0, 1.0}
static

Definition at line 32 of file soundconfig.cpp.

◆ menuMusicList

const char* menuMusicList[]
static
Initial value:
= {
}
#define MM_VAL_SOUND_ENABLED
Definition musicplayer.h:26
#define MM_VAL_SOUND_DISABLED
Definition musicplayer.h:27

Definition at line 44 of file soundconfig.cpp.

◆ MenuMusicOptionId

int MenuMusicOptionId
static

Definition at line 52 of file soundconfig.cpp.

◆ nbOptions

const int nbOptions = sizeof(soundOptionList) / sizeof(soundOptionList[0])
static

Definition at line 41 of file soundconfig.cpp.

◆ prevHandle

void* prevHandle = NULL
static

Definition at line 60 of file soundconfig.cpp.

◆ scrHandle

void* scrHandle = NULL
static

Definition at line 59 of file soundconfig.cpp.

◆ SoundOptionId

int SoundOptionId
static

Definition at line 51 of file soundconfig.cpp.

◆ soundOptionList

const char* soundOptionList[]
static
Initial value:
= {
}
#define GR_ATT_SOUND_STATE_DISABLED
Definition graphic.h:47
#define GR_ATT_SOUND_STATE_OPENAL
Definition graphic.h:46

Definition at line 35 of file soundconfig.cpp.

◆ VolumeValue

float VolumeValue = 100.0f
static

Definition at line 55 of file soundconfig.cpp.