mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-30 08:57:00 +02:00
3a279a7964
We can play wav data of Heroes3.snd through CMusicHandler::playLodSnd(std::string name) now, where name can be "BASLDFND.wav" or "BASLKILL.wav".
20 lines
865 B
C++
20 lines
865 B
C++
#ifndef CMUSICHANDLER_H
|
|
#define CMUSICHANDLER_H
|
|
|
|
#include "SDL_mixer.h"
|
|
#include "CSndHandler.h"
|
|
|
|
class CMusicHandler
|
|
{
|
|
protected:
|
|
CSndHandler *sndh;
|
|
public:
|
|
Mix_Music *AITheme0, *AITheme1, *AITheme2, *combat1, *combat2, *combat3, *combat4, *castleTown, *defendCastle, *dirt, *dungeon, *elemTown, *evilTheme, *fortressTown, *goodTheme, *grass, *infernoTown, *lava, *loopLepr, *loseCampain, *loseCastle, *loseCombat, *mainMenu, *mainMenuWoG, *necroTown, *neutralTheme, *rampart, *retreatBattle, *rough, *sand, *secretTheme, *snow, *stronghold, *surrenderBattle, *swamp, *towerTown, *ultimateLose, *underground, *water, *winScenario, *winBattle;
|
|
Mix_Chunk * buildTown, *click;
|
|
void initMusics();
|
|
void playClick(); //plays click music ;]
|
|
void playLodSnd(std::string sndname); // plays sound wavs from Heroes3.snd
|
|
};
|
|
|
|
|
|
#endif //CMUSICHANDLER_H
|