home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / RESOURCES / KOOB / control / client / misc / sndprofiles.cs < prev    next >
Encoding:
Text File  |  2006-09-25  |  965 b   |  53 lines

  1. // Channel assignments (channel 0 is unused in-game).
  2. $GuiAudioType     = 1;
  3. $SimAudioType     = 2;
  4. $MessageAudioType = 3;
  5. new AudioDescription(AudioMusic)
  6. {
  7.    volume   = 0.8;
  8.    isLooping= false;
  9.    is3D     = false;
  10.    type     = $MusicAudioType;
  11. };
  12.  
  13. new AudioProfile(AudioIntroMusicProfile)
  14. {
  15.    filename = "control/data/sound/twlogo.wav";
  16.    description = "AudioMusic";
  17.    preload = true;
  18. };
  19. function PlayMusic(%handle)
  20. {
  21.    if (!alxIsPlaying(%handle))
  22.      alxPlay(%handle);
  23. }
  24.  
  25. function StopMusic()
  26. {
  27.      alxStopAll();
  28. }
  29.  
  30.  
  31. new AudioDescription(AudioGui)
  32. {
  33.   volume   = 1.0;
  34.   isLooping= false;
  35.   is3D     = false;
  36.   type     = $GuiAudioType;
  37. };
  38.  
  39. new AudioDescription(AudioMessage)
  40. {
  41.   volume   = 1.0;
  42.   isLooping= false;
  43.   is3D     = false;
  44.   type     = $MessageAudioType;
  45. };
  46.  
  47. new AudioProfile(AudioButtonOver)
  48. {
  49.   filename = "~/data/sound/buttonOver.wav";
  50.   description = "AudioGui";
  51.   preload = true;
  52. };
  53.