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 >
Wrap
C/C++ Source or Header
|
2004-05-13
|
1KB
|
57 lines
#include "main.h"
//--------------
//Global
//--------------
SOUNDLIB SoundLib;
//incicializacia vsetkych zvukov
//-------------------------------------------------------------
void SOUNDLIB::Initialize()
{
//-----------------
//aj 3D aj Normal
//-----------------
//ExlodeSmall
if (SoundEnabled3D == 1)
ExplodeSmall.InitialiseForWavMidi3D();
else
ExplodeSmall.InitialiseForWavMidi();
ExplodeSmall.LoadSound("sounds/explodesmall.wav");
//ExlodeLarge
if (SoundEnabled3D == 1)
ExplodeLarge.InitialiseForWavMidi3D();
else
ExplodeLarge.InitialiseForWavMidi();
ExplodeLarge.LoadSound("sounds/explodelarge.wav");
//fire friendly
if (SoundEnabled3D == 1)
FireFriendly.InitialiseForWavMidi3D();
else
FireFriendly.InitialiseForWavMidi3D();
FireFriendly.LoadSound("sounds/fire.wav");
//---------------
//Iba 3D
//---------------
//FireUnFriendly
if (SoundEnabled3D == 1)
{
FireUnFriendly.InitialiseForWavMidi3D();
FireUnFriendly.LoadSound("sounds/fire.wav");
}
}