-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgameSound.h
35 lines (27 loc) · 926 Bytes
/
gameSound.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/***************************************************************************
** gameSound é utilizada para toda parte sonora da engine, isto é **
** sound effect e background music[...] **
** Criado por Lucas P. Stark **
** Nightmare Fiction Engine - NFE **
***************************************************************************/
#ifndef GAME_SOUND_H
#define GAME_SOUND_H
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <SDL/SDL.h>
#include <SDL/SDL_mixer.h>
class gameSound {
public:
gameSound();
~gameSound();
bool engineSoundInit();
void engineLoadSound(std::string soundName);
void enginePlaySound(int rept);
void engineStopSound();
void enginePlaySoundEffect(Mix_Chunk *node);
int enginePlayingMusic();
private:
Mix_Music *backgroundMusic;
};
#endif