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 / server-side / sndprofiles.cs
Encoding:
Text File  |  2006-09-22  |  1.5 KB  |  78 lines

  1. datablock AudioDescription(AudioDefault3d)
  2. {
  3.    volume   = 1.0;
  4.    isLooping= false;
  5.    is3D     = true;
  6.    ReferenceDistance= 20.0;
  7.    MaxDistance= 100.0;
  8.    type     = $SimAudioType;
  9. };
  10.  
  11. datablock AudioDescription(AudioClose3d)
  12. {
  13.    volume   = 1.0;
  14.    isLooping= false;
  15.    is3D     = true;
  16.    ReferenceDistance= 10.0;
  17.    MaxDistance= 60.0;
  18.    type     = $SimAudioType;
  19. };
  20.  
  21. datablock AudioDescription(AudioClosest3d)
  22. {
  23.    volume   = 1.0;
  24.    isLooping= false;
  25.    is3D     = true;
  26.    ReferenceDistance= 5.0;
  27.    MaxDistance= 30.0;
  28.    type     = $SimAudioType;
  29. };
  30.  
  31. // Looping sounds
  32. datablock AudioDescription(AudioDefaultLooping3d)
  33. {
  34.    volume   = 1.0;
  35.    isLooping= true;
  36.    is3D     = true;
  37.    ReferenceDistance= 20.0;
  38.    MaxDistance= 100.0;
  39.    type     = $SimAudioType;
  40. };
  41.  
  42. datablock AudioDescription(AudioCloseLooping3d)
  43. {
  44.    volume   = 1.0;
  45.    isLooping= true;
  46.    is3D     = true;
  47.    ReferenceDistance= 10.0;
  48.    MaxDistance= 50.0;
  49.    type     = $SimAudioType;
  50. };
  51.  
  52. datablock AudioDescription(AudioClosestLooping3d)
  53. {
  54.    volume   = 1.0;
  55.    isLooping= true;
  56.    is3D     = true;
  57.    ReferenceDistance= 5.0;
  58.    MaxDistance= 30.0;
  59.    type     = $SimAudioType;
  60. };
  61.  
  62. // Used for non-looping environmental sounds (like power on, power off)
  63. datablock AudioDescription(Audio2D)
  64. {
  65.    volume = 1.0;
  66.    isLooping = false;
  67.    is3D = false;
  68.    type = $SimAudioType;
  69. };
  70.  
  71. datablock AudioDescription(AudioLooping2D)
  72. {
  73.    volume = 1.0;
  74.    isLooping = true;
  75.    is3D = false;
  76.    type = $SimAudioType;
  77. };
  78.