TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
grsound.cpp File Reference
#include <math.h>
#include <tgfclient.h>
#include <graphic.h>
#include <car.h>
#include <portability.h>
#include "grsound.h"
#include "grmain.h"
#include "sound_defines.h"
#include "SoundInterface.h"
#include "CarSoundData.h"
Include dependency graph for grsound.cpp:

Go to the source code of this file.

Enumerations

enum  SoundMode { DISABLED , OPENAL_MODE , PLIB_MODE }

Functions

void grInitSound (tSituation *s, int ncars)
void grShutdownSound (int ncars)
float grRefreshSound (tSituation *s, cGrCamera *camera)
void grMuteForMenu (void)

Variables

static int soundInitialized = 0
static double lastUpdated
static SoundInterface * sound_interface = NULL
static CarSoundData ** car_sound_data = NULL
static enum SoundMode sound_mode = OPENAL_MODE

Enumeration Type Documentation

◆ SoundMode

enum SoundMode
Enumerator
DISABLED 
OPENAL_MODE 
PLIB_MODE 

Definition at line 40 of file grsound.cpp.

Function Documentation

◆ grInitSound()

void grInitSound ( tSituation * s,
int ncars )

Definition at line 45 of file grsound.cpp.

Here is the call graph for this function:

◆ grMuteForMenu()

void grMuteForMenu ( void )

Definition at line 250 of file grsound.cpp.

◆ grRefreshSound()

float grRefreshSound ( tSituation * s,
cGrCamera * camera )

Definition at line 204 of file grsound.cpp.

Here is the call graph for this function:

◆ grShutdownSound()

void grShutdownSound ( int ncars)

Definition at line 172 of file grsound.cpp.

Variable Documentation

◆ car_sound_data

CarSoundData** car_sound_data = NULL
static

Definition at line 38 of file grsound.cpp.

◆ lastUpdated

double lastUpdated
static

Definition at line 35 of file grsound.cpp.

◆ sound_interface

SoundInterface* sound_interface = NULL
static

Definition at line 37 of file grsound.cpp.

◆ sound_mode

enum SoundMode sound_mode = OPENAL_MODE
static

Definition at line 42 of file grsound.cpp.

◆ soundInitialized

int soundInitialized = 0
static

Definition at line 34 of file grsound.cpp.