home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / RESOURCES / CH18 / Book Code / client-side / sndprofile.cs
Encoding:
Text File  |  2006-09-22  |  534 b   |  28 lines

  1. // Channel assignments (channel 0 is unused in-game).
  2. $GuiAudioType     = 1;
  3. $SimAudioType     = 2;
  4. $MessageAudioType = 3;
  5.  
  6. new AudioDescription(AudioGui)
  7. {
  8.   volume   = 1.0;
  9.   isLooping= false;
  10.   is3D     = false;
  11.   type     = $GuiAudioType;
  12. };
  13.  
  14. new AudioDescription(AudioMessage)
  15. {
  16.   volume   = 1.0;
  17.   isLooping= false;
  18.   is3D     = false;
  19.   type     = $MessageAudioType;
  20. };
  21.  
  22. new AudioProfile(AudioButtonOver)
  23. {
  24.   filename = "~/data/sound/buttonOver.wav";
  25.   description = "AudioGui";
  26.   preload = true;
  27. };
  28.