TORCS  1.3.9
The Open Racing Car Simulator
soundconfig.cpp File Reference


More...

#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 (void *vp)
 
static void changeMenuMusicState (void *vp)
 
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
 

Detailed Description


Version
$Id$

Definition in file soundconfig.cpp.

Function Documentation

◆ changeMenuMusicState()

static void changeMenuMusicState ( void *  vp)
static

Definition at line 166 of file soundconfig.cpp.

Here is the call graph for this function:

◆ changeSoundState()

static void changeSoundState ( void *  vp)
static

Definition at line 148 of file soundconfig.cpp.

Here is the call graph for this function:

◆ onActivate()

static void onActivate ( void *  )
static

Definition at line 192 of file soundconfig.cpp.

Here is the call graph for this function:

◆ readSoundCfg()

static void readSoundCfg ( void  )
static

Definition at line 67 of file soundconfig.cpp.

Here is the call graph for this function:

◆ saveSoundOption()

static void saveSoundOption ( void *  )
static

Definition at line 116 of file soundconfig.cpp.

Here is the call graph for this function:

◆ SoundMenuInit()

void* SoundMenuInit ( void *  prevMenu)

Definition at line 199 of file soundconfig.cpp.

Here is the call graph for this function:

Variable Documentation

◆ curOption

int curOption = 0
static

Definition at line 45 of file soundconfig.cpp.

◆ curOptionMenuMusic

int curOptionMenuMusic = 0
static

Definition at line 51 of file soundconfig.cpp.

◆ LabelColor

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

Definition at line 35 of file soundconfig.cpp.

◆ menuMusicList

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

Definition at line 47 of file soundconfig.cpp.

◆ MenuMusicOptionId

int MenuMusicOptionId
static

Definition at line 55 of file soundconfig.cpp.

◆ nbOptions

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

Definition at line 44 of file soundconfig.cpp.

◆ prevHandle

void* prevHandle = NULL
static

Definition at line 63 of file soundconfig.cpp.

◆ scrHandle

void* scrHandle = NULL
static

Definition at line 62 of file soundconfig.cpp.

◆ SoundOptionId

int SoundOptionId
static

Definition at line 54 of file soundconfig.cpp.

◆ soundOptionList

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

Definition at line 38 of file soundconfig.cpp.

◆ VolumeValue

float VolumeValue = 100.0f
static

Definition at line 58 of file soundconfig.cpp.