233 lines
4.7 KiB
C#
233 lines
4.7 KiB
C#
|
//-----------------------------------------------------------------------------
|
||
|
// Torque Game Engine
|
||
|
//
|
||
|
// Copyright (c) 2001 GarageGames.Com
|
||
|
// Portions Copyright (c) 2001 by Sierra Online, Inc.
|
||
|
//-----------------------------------------------------------------------------
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// 3D Sounds
|
||
|
//-----------------------------------------------------------------------------
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Single shot sounds
|
||
|
|
||
|
datablock AudioDescription(AudioDefault3d)
|
||
|
{
|
||
|
volume = 1.0;
|
||
|
isLooping= false;
|
||
|
|
||
|
is3D = true;
|
||
|
ReferenceDistance= 20.0;
|
||
|
MaxDistance= 100.0;
|
||
|
type = $EffectAudioType;
|
||
|
};
|
||
|
|
||
|
datablock AudioDescription(AudioClose3d)
|
||
|
{
|
||
|
volume = 1.0;
|
||
|
isLooping= false;
|
||
|
|
||
|
is3D = true;
|
||
|
ReferenceDistance= 10.0;
|
||
|
MaxDistance= 60.0;
|
||
|
type = $EffectAudioType;
|
||
|
};
|
||
|
|
||
|
datablock AudioDescription(AudioClosest3d)
|
||
|
{
|
||
|
volume = 1.0;
|
||
|
isLooping= false;
|
||
|
|
||
|
is3D = true;
|
||
|
ReferenceDistance= 5.0;
|
||
|
MaxDistance= 30.0;
|
||
|
type = $EffectAudioType;
|
||
|
};
|
||
|
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Looping sounds
|
||
|
|
||
|
datablock AudioDescription(AudioDefaultLooping3d)
|
||
|
{
|
||
|
volume = 1.0;
|
||
|
isLooping= true;
|
||
|
|
||
|
is3D = true;
|
||
|
ReferenceDistance= 20.0;
|
||
|
MaxDistance= 100.0;
|
||
|
type = $EffectAudioType;
|
||
|
};
|
||
|
|
||
|
datablock AudioDescription(AudioCloseLooping3d)
|
||
|
{
|
||
|
volume = 1.0;
|
||
|
isLooping= true;
|
||
|
|
||
|
is3D = true;
|
||
|
ReferenceDistance= 10.0;
|
||
|
MaxDistance= 50.0;
|
||
|
type = $EffectAudioType;
|
||
|
};
|
||
|
|
||
|
datablock AudioDescription(AudioClosestLooping3d)
|
||
|
{
|
||
|
volume = 1.0;
|
||
|
isLooping= true;
|
||
|
|
||
|
is3D = true;
|
||
|
ReferenceDistance= 5.0;
|
||
|
MaxDistance= 30.0;
|
||
|
type = $EffectAudioType;
|
||
|
};
|
||
|
|
||
|
datablock AudioDescription(Quieter3D)
|
||
|
{
|
||
|
volume = 0.40;
|
||
|
isLooping= false;
|
||
|
|
||
|
is3D = true;
|
||
|
ReferenceDistance= 20.0;
|
||
|
MaxDistance= 100.0;
|
||
|
type = $EffectAudioType;
|
||
|
};
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// 2d sounds
|
||
|
//-----------------------------------------------------------------------------
|
||
|
|
||
|
// Used for non-looping environmental sounds (like power on, power off)
|
||
|
datablock AudioDescription(Audio2D)
|
||
|
{
|
||
|
volume = 1.0;
|
||
|
isLooping = false;
|
||
|
is3D = false;
|
||
|
type = $EffectAudioType;
|
||
|
};
|
||
|
|
||
|
// Used for Looping Environmental Sounds
|
||
|
datablock AudioDescription(AudioLooping2D)
|
||
|
{
|
||
|
volume = 1.0;
|
||
|
isLooping = true;
|
||
|
is3D = false;
|
||
|
type = $EffectAudioType;
|
||
|
};
|
||
|
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Ready - Set - Get Rolling
|
||
|
|
||
|
datablock AudioProfile(spawnSfx)
|
||
|
{
|
||
|
filename = "~/data/sound/spawn.wav";
|
||
|
description = AudioDefault3d;
|
||
|
preload = true;
|
||
|
};
|
||
|
|
||
|
datablock AudioProfile(pickupSfx)
|
||
|
{
|
||
|
filename = "~/data/sound/pickup.wav";
|
||
|
description = AudioDefault3d;
|
||
|
preload = true;
|
||
|
};
|
||
|
|
||
|
datablock AudioProfile(HelpDingSfx)
|
||
|
{
|
||
|
filename = "~/data/sound/InfoTutorial.wav";
|
||
|
description = AudioDefault3d;
|
||
|
preload = true;
|
||
|
};
|
||
|
|
||
|
datablock AudioProfile(ReadyVoiceSfx)
|
||
|
{
|
||
|
filename = "~/data/sound/ready.wav";
|
||
|
description = AudioDefault3d;
|
||
|
preload = true;
|
||
|
};
|
||
|
|
||
|
datablock AudioProfile(SetVoiceSfx)
|
||
|
{
|
||
|
filename = "~/data/sound/set.wav";
|
||
|
description = AudioDefault3d;
|
||
|
preload = true;
|
||
|
};
|
||
|
|
||
|
datablock AudioProfile(GetRollingVoiceSfx)
|
||
|
{
|
||
|
filename = "~/data/sound/go.wav";
|
||
|
description = AudioDefault3d;
|
||
|
preload = true;
|
||
|
};
|
||
|
|
||
|
if ($platform $= "x86UNIX")
|
||
|
{
|
||
|
// fireworks are a bit too piercing with linux openal
|
||
|
datablock AudioProfile(WonRaceSfx)
|
||
|
{
|
||
|
filename = "~/data/sound/firewrks.wav";
|
||
|
description = Quieter3D;
|
||
|
preload = true;
|
||
|
};
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
datablock AudioProfile(WonRaceSfx)
|
||
|
{
|
||
|
filename = "~/data/sound/firewrks.wav";
|
||
|
description = AudioDefault3d;
|
||
|
preload = true;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
datablock AudioProfile(MissingGemsSfx)
|
||
|
{
|
||
|
filename = "~/data/sound/missingGems.wav";
|
||
|
description = AudioDefault3d;
|
||
|
preload = true;
|
||
|
};
|
||
|
|
||
|
datablock AudioProfile(jumpSfx)
|
||
|
{
|
||
|
filename = "~/data/sound/bounce.wav";
|
||
|
description = AudioDefault3d;
|
||
|
preload = true;
|
||
|
};
|
||
|
|
||
|
datablock AudioProfile(bounceSfx)
|
||
|
{
|
||
|
filename = "~/data/sound/bounce.wav";
|
||
|
description = AudioDefault3d;
|
||
|
preload = true;
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Misc
|
||
|
|
||
|
datablock AudioProfile(PenaltyVoiceSfx)
|
||
|
{
|
||
|
filename = "~/data/sound/penalty.wav";
|
||
|
description = AudioDefault3d;
|
||
|
preload = true;
|
||
|
};
|
||
|
|
||
|
datablock AudioProfile(OutOfBoundsVoiceSfx)
|
||
|
{
|
||
|
filename = "~/data/sound/whoosh.wav";
|
||
|
description = AudioDefault3d;
|
||
|
preload = true;
|
||
|
};
|
||
|
|
||
|
datablock AudioProfile(DestroyedVoiceSfx)
|
||
|
{
|
||
|
filename = "~/data/sound/destroyedVoice.wav";
|
||
|
description = AudioDefault3d;
|
||
|
preload = true;
|
||
|
};
|
||
|
|
||
|
|