home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / demo / client / scripts / audioProfiles.cs next >
Encoding:
Text File  |  2005-11-23  |  916 b   |  41 lines

  1. //-----------------------------------------------------------------------------
  2. // Torque Game Engine
  3. // Copyright (C) GarageGames.com, Inc.
  4. //-----------------------------------------------------------------------------
  5.  
  6. // Channel assignments (channel 0 is unused in-game).
  7.  
  8. $GuiAudioType     = 1;
  9. $SimAudioType     = 2;
  10. $MessageAudioType = 3;
  11.  
  12. new AudioDescription(AudioGui)
  13. {
  14.    volume   = 1.0;
  15.    isLooping= false;
  16.    is3D     = false;
  17.    type     = $GuiAudioType;
  18. };
  19.  
  20. new AudioDescription(AudioMessage)
  21. {
  22.    volume   = 1.0;
  23.    isLooping= false;
  24.    is3D     = false;
  25.    type     = $MessageAudioType;
  26. };
  27.  
  28. new AudioProfile(AudioButtonOver)
  29. {
  30.    filename = "~/data/sound/gui/buttonOver.ogg";
  31.    description = "AudioGui";
  32.    preload = true;
  33. };
  34.  
  35. new AudioProfile(AudioStartup)
  36. {
  37.    filename = "~/data/sound/gui/startup.ogg";
  38.    description = "AudioGui";
  39.    preload = true;
  40. };
  41.