home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 July & August / PCWorld_2006-07-08_cd.bin / temacd / planearcade / planearcade.exe / Tank3.bmp / soundlib.cpp < prev    next >
C/C++ Source or Header  |  2004-05-13  |  1KB  |  57 lines

  1.  
  2.  
  3. #include "main.h"
  4.  
  5. //--------------
  6. //Global
  7. //--------------
  8. SOUNDLIB SoundLib;
  9.  
  10. //incicializacia vsetkych zvukov
  11. //-------------------------------------------------------------
  12. void SOUNDLIB::Initialize()
  13. {
  14.  
  15.     
  16.     //-----------------
  17.     //aj 3D aj Normal
  18.     //-----------------
  19.  
  20.     //ExlodeSmall
  21.     if (SoundEnabled3D == 1)
  22.         ExplodeSmall.InitialiseForWavMidi3D();
  23.     else
  24.         ExplodeSmall.InitialiseForWavMidi();
  25.     ExplodeSmall.LoadSound("sounds/explodesmall.wav");
  26.  
  27.     //ExlodeLarge
  28.     if (SoundEnabled3D == 1)
  29.         ExplodeLarge.InitialiseForWavMidi3D();
  30.     else
  31.         ExplodeLarge.InitialiseForWavMidi();
  32.     ExplodeLarge.LoadSound("sounds/explodelarge.wav");
  33.         
  34.     //fire friendly
  35.     if (SoundEnabled3D == 1)
  36.         FireFriendly.InitialiseForWavMidi3D();
  37.     else
  38.         FireFriendly.InitialiseForWavMidi3D();
  39.     FireFriendly.LoadSound("sounds/fire.wav");
  40.  
  41.  
  42.     //---------------
  43.     //Iba 3D
  44.     //---------------
  45.  
  46.     //FireUnFriendly
  47.     if (SoundEnabled3D == 1)
  48.     {
  49.         FireUnFriendly.InitialiseForWavMidi3D();
  50.         FireUnFriendly.LoadSound("sounds/fire.wav");
  51.     }
  52.         
  53.  
  54.     
  55.  
  56. }
  57.