iRDS - Intelligent Race Driver System  V 2.1.0.5
 All Classes Namespaces Functions Variables Properties Events
IRDSSoundController Class Reference
Inheritance diagram for IRDSSoundController:

Classes

class  IRDSAudioClips
 

Public Types

enum  IRDSAudioEvents {
  None, Overtake, OvertakeLeft, OvertakeRight,
  Braking, Avoiding, AvoidingLeft, AvoidingRight,
  Backfire, Scratch, TurboBlowoff, StartEngine,
  Physic_Material, Crash, Shifting, WinningRace,
  LossingRace, PlaceOnRace, Nitro, shiftingUp,
  shiftingDown
}
 
enum  IRDSAudioPitchOptions {
  None, RpmDependent, SpeedDependent, ThrottleDependent,
  Randomized, Tire_Grip_n_Force
}
 
enum  IRDSAudioVolumeOptions {
  None, RpmDependent, SpeedDependent, ThrottleDependent,
  Tire_Grip_n_Force
}
 
enum  IRDSButtonEvents { GetButtonUp, GetButton, GetButtonDown }
 

Public Member Functions

AudioSource GetCrashSource ()
 Gets the crash source. More...
 
AudioSource GetEngineSource ()
 Gets the engine source. More...
 
AudioSource GetSkidSource ()
 Gets the skid source. More...
 
AudioSource GetTurboSource ()
 Gets the turbo source. More...
 
AudioSource GetBlowOffValveSource ()
 Gets the blow off valve source. More...
 
AudioSource GetGearsSource ()
 Gets the gears source. More...
 
AudioSource GetGravelSource ()
 Gets the gravel source. More...
 
AudioSource GetBackFireSource ()
 Gets the back fire source. More...
 
AudioSource GetStartEngineSource ()
 Gets the start engine source. More...
 
AudioSource[] GetTireBumpSource ()
 Gets the tire bump source. More...
 
void Crash (float volumeFactor)
 
void BackFire ()
 
void StartEngineSound ()
 

Public Attributes

AudioClip startEngine
 The start engine. More...
 
AudioSource startEngineSource = null
 The start engine source. More...
 
float startEngineVolume = 1.0f
 The start engine volume. More...
 
bool startedEngine = false
 The started engine. More...
 
AudioClip tireBump
 The tire bump. More...
 
AudioSource[] tireBumpSource
 The tire bump source. More...
 
float timeBetweenBumps = 0.1f
 The time between bumps. More...
 
float engineVolumeMultiplier = 1
 The engine volume multiplier. More...
 
float skidVolumeMultiplier = 1
 The skid volume multiplier. More...
 
float turboVolumeMultiplier = 1
 The turbo volume multiplier. More...
 
float blowOffValveVolumeMultiplier = 1
 The blow off valve volume multiplier. More...
 
float gearsVolumeMultiplier = 1
 The gears volume multiplier. More...
 
float gravelVolumeMultiplier = 1
 The gravel volume multiplier. More...
 
float backFireVolumeMultiplier = 1
 The back fire volume multiplier. More...
 
float tireBumpVolumeMultiplier = 1
 The tire bump volume multiplier. More...
 
float tireBumpSensitivity =10
 The tire bump sensitivity. More...
 
AudioClip wind
 The wind. More...
 
AudioSource windSource = null
 The wind source. More...
 
float windPitchRatio = 1
 The wind pitch ratio. More...
 
float windVolume = 1.0f
 The wind volume. More...
 
AudioClip breakSound
 The break sound. More...
 
AudioSource breakSoundSource = null
 The break sound source. More...
 
float breakSoundVolume = 1.0f
 The break sound volume. More...
 
AudioClip grass
 The grass. More...
 
AudioSource grassSource = null
 The grass source. More...
 
float grassVolume = 1.0f
 The grass volume. More...
 
float grassMinPitch = 0.5f
 The grass minimum pitch. More...
 
float grassMaxPitch = 1.0f
 The grass max pitch. More...
 
float grassMinVol = 0.5f
 The grass minimum vol. More...
 
float grassMaxVol = 1f
 The grass max vol. More...
 
float gravelMinPitch = 0.5f
 The gravel minimum pitch. More...
 
float gravelMaxPitch = 1.0f
 The gravel max pitch. More...
 
float gravelMinVol = 0.5f
 The gravel minimum vol. More...
 
float gravelMaxVol = 1f
 The gravel max vol. More...
 
float skidMinPitch = 0.8f
 The skid minimum pitch. More...
 
float skidMaxPitch = 1.1f
 The skid max pitch. More...
 
float engineMinPitch = 0.5f
 The engine minimum pitch. More...
 
float engineMaxPitch = 1.3f
 The engine max pitch. More...
 
float turboMinPitch = 0.5f
 The turbo minimum pitch. More...
 
float turboMaxPitch = 0.5f
 The turbo max pitch. More...
 
float turboMinVol = 0.3f
 The turbo minimum vol. More...
 
float turboMaxVol = 0.6f
 The turbo max vol. More...
 
AudioClip scratch
 The scratch. More...
 
AudioSource scratchSource = null
 The scratch source. More...
 
float scratchVolume = 0.0f
 The scratch volume. More...
 
float scratchVolumeMultiplier = 1.0f
 The scratch volume multiplier. More...
 
float scratchMinPitch = 0.8f
 The scratch minimum pitch. More...
 
float scratchMaxPitch = 1.1f
 The scratch max pitch. More...
 
float speedRatio = 0
 The speed ratio. More...
 
AudioClip policeSiren
 The police siren. More...
 
AudioSource policeSirenSource = null
 The police siren source. More...
 
float policeSirenVolume = 1.0f
 The police siren volume. More...
 
float masterVolume = 1f
 The master volume. More...
 
List< IRDSAudioClipsextraAudioClips
 The extra audio clips. More...
 
bool backfire = false
 
bool startingEngine = false
 
bool avoiding = false
 
bool avoidingLeft = false
 
bool avoidingRight = false
 
bool overtaking = false
 
bool overtakingLeft = false
 
bool overtakingRight = false
 
bool shifting = false
 
bool braking = false
 
bool scratching = false
 
bool turboBlowingOff = false
 
bool collision = false
 
bool raceEnded = false
 
bool currentCar
 
int racePosition = 0
 
List< int > audioWithMaterialsIndex
 
bool isSkid = false
 
float backFireDopplerLevel = 1f
 The back fire doppler level. More...
 
float gearsDopplerLevel = 1f
 The gears doppler level. More...
 
float tireBumpsDopplerLevel = 1f
 The tire bumps doppler level. More...
 
float blowOffDopplerLevel = 1f
 The blow off doppler level. More...
 
float skidEffectsThreshold = 0.3f
 The skid sound effects Threshold, this gives the ability to tune the skid audio with respect to the visual effects for the skid marks. More...
 
float skidEffectsSensitivity = 0.07f
 The skid sound effects sensitivity, this gives the ability to tune the skid audio with respect to the visual effects for the skid marks, higher values would make the skid sound more sensible to the tire skids. More...
 

Properties

float tiresForce [get]
 

Member Function Documentation

AudioSource IRDSSoundController.GetBackFireSource ( )

Gets the back fire source.

Returns
The back fire source.
AudioSource IRDSSoundController.GetBlowOffValveSource ( )

Gets the blow off valve source.

Returns
The blow off valve source.
AudioSource IRDSSoundController.GetCrashSource ( )

Gets the crash source.

Returns
The crash source.
AudioSource IRDSSoundController.GetEngineSource ( )

Gets the engine source.

Returns
The engine source.
AudioSource IRDSSoundController.GetGearsSource ( )

Gets the gears source.

Returns
The gears source.
AudioSource IRDSSoundController.GetGravelSource ( )

Gets the gravel source.

Returns
The gravel source.
AudioSource IRDSSoundController.GetSkidSource ( )

Gets the skid source.

Returns
The skid source.
AudioSource IRDSSoundController.GetStartEngineSource ( )

Gets the start engine source.

Returns
The start engine source.
AudioSource [] IRDSSoundController.GetTireBumpSource ( )

Gets the tire bump source.

Returns
The tire bump source.
AudioSource IRDSSoundController.GetTurboSource ( )

Gets the turbo source.

Returns
The turbo source.

Member Data Documentation

float IRDSSoundController.backFireDopplerLevel = 1f

The back fire doppler level.

float IRDSSoundController.backFireVolumeMultiplier = 1

The back fire volume multiplier.

float IRDSSoundController.blowOffDopplerLevel = 1f

The blow off doppler level.

float IRDSSoundController.blowOffValveVolumeMultiplier = 1

The blow off valve volume multiplier.

AudioClip IRDSSoundController.breakSound

The break sound.

AudioSource IRDSSoundController.breakSoundSource = null

The break sound source.

float IRDSSoundController.breakSoundVolume = 1.0f

The break sound volume.

float IRDSSoundController.engineMaxPitch = 1.3f

The engine max pitch.

float IRDSSoundController.engineMinPitch = 0.5f

The engine minimum pitch.

float IRDSSoundController.engineVolumeMultiplier = 1

The engine volume multiplier.

List<IRDSAudioClips> IRDSSoundController.extraAudioClips

The extra audio clips.

float IRDSSoundController.gearsDopplerLevel = 1f

The gears doppler level.

float IRDSSoundController.gearsVolumeMultiplier = 1

The gears volume multiplier.

AudioClip IRDSSoundController.grass

The grass.

float IRDSSoundController.grassMaxPitch = 1.0f

The grass max pitch.

float IRDSSoundController.grassMaxVol = 1f

The grass max vol.

float IRDSSoundController.grassMinPitch = 0.5f

The grass minimum pitch.

float IRDSSoundController.grassMinVol = 0.5f

The grass minimum vol.

AudioSource IRDSSoundController.grassSource = null

The grass source.

float IRDSSoundController.grassVolume = 1.0f

The grass volume.

float IRDSSoundController.gravelMaxPitch = 1.0f

The gravel max pitch.

float IRDSSoundController.gravelMaxVol = 1f

The gravel max vol.

float IRDSSoundController.gravelMinPitch = 0.5f

The gravel minimum pitch.

float IRDSSoundController.gravelMinVol = 0.5f

The gravel minimum vol.

float IRDSSoundController.gravelVolumeMultiplier = 1

The gravel volume multiplier.

float IRDSSoundController.masterVolume = 1f

The master volume.

AudioClip IRDSSoundController.policeSiren

The police siren.

AudioSource IRDSSoundController.policeSirenSource = null

The police siren source.

float IRDSSoundController.policeSirenVolume = 1.0f

The police siren volume.

AudioClip IRDSSoundController.scratch

The scratch.

float IRDSSoundController.scratchMaxPitch = 1.1f

The scratch max pitch.

float IRDSSoundController.scratchMinPitch = 0.8f

The scratch minimum pitch.

AudioSource IRDSSoundController.scratchSource = null

The scratch source.

float IRDSSoundController.scratchVolume = 0.0f

The scratch volume.

float IRDSSoundController.scratchVolumeMultiplier = 1.0f

The scratch volume multiplier.

float IRDSSoundController.skidEffectsSensitivity = 0.07f

The skid sound effects sensitivity, this gives the ability to tune the skid audio with respect to the visual effects for the skid marks, higher values would make the skid sound more sensible to the tire skids.

float IRDSSoundController.skidEffectsThreshold = 0.3f

The skid sound effects Threshold, this gives the ability to tune the skid audio with respect to the visual effects for the skid marks.

float IRDSSoundController.skidMaxPitch = 1.1f

The skid max pitch.

float IRDSSoundController.skidMinPitch = 0.8f

The skid minimum pitch.

float IRDSSoundController.skidVolumeMultiplier = 1

The skid volume multiplier.

float IRDSSoundController.speedRatio = 0

The speed ratio.

bool IRDSSoundController.startedEngine = false

The started engine.

AudioClip IRDSSoundController.startEngine

The start engine.

AudioSource IRDSSoundController.startEngineSource = null

The start engine source.

float IRDSSoundController.startEngineVolume = 1.0f

The start engine volume.

float IRDSSoundController.timeBetweenBumps = 0.1f

The time between bumps.

AudioClip IRDSSoundController.tireBump

The tire bump.

float IRDSSoundController.tireBumpsDopplerLevel = 1f

The tire bumps doppler level.

float IRDSSoundController.tireBumpSensitivity =10

The tire bump sensitivity.

AudioSource [] IRDSSoundController.tireBumpSource

The tire bump source.

float IRDSSoundController.tireBumpVolumeMultiplier = 1

The tire bump volume multiplier.

float IRDSSoundController.turboMaxPitch = 0.5f

The turbo max pitch.

float IRDSSoundController.turboMaxVol = 0.6f

The turbo max vol.

float IRDSSoundController.turboMinPitch = 0.5f

The turbo minimum pitch.

float IRDSSoundController.turboMinVol = 0.3f

The turbo minimum vol.

float IRDSSoundController.turboVolumeMultiplier = 1

The turbo volume multiplier.

AudioClip IRDSSoundController.wind

The wind.

float IRDSSoundController.windPitchRatio = 1

The wind pitch ratio.

AudioSource IRDSSoundController.windSource = null

The wind source.

float IRDSSoundController.windVolume = 1.0f

The wind volume.