-
Notifications
You must be signed in to change notification settings - Fork 3
/
music.h
executable file
·52 lines (44 loc) · 1.19 KB
/
music.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/**************
* File Name: music.h
* Author: G. J. Krafsig
* Date: July 3rd, 2007
* Purpose: header files for game music
**************/
#ifndef GAMEMUSIC_H
#define GAMEMUSIC_H
#include <cstdlib>
#include <cmath>
#include <allegro.h>
#include "map.h"
#define BLOCKFALL 12
#define ERRORMOVE 13
#define THEME 14
class gamemusic
{
public:
//class constructor
gamemusic();
bool loadMusic(); //load the game music
bool destroyMusic(); //free the used memory
bool playing; //playing the music (or not)
bool play(int map, int volume, int pan, int rate, int loop); //play music for this map
bool stop(); //stop current music
bool sound;
//variables for the sounds
SAMPLE *blockfall;
SAMPLE *errormove;
SAMPLE *theme;
SAMPLE *current; //current song playing
SAMPLE *ashcanyon;
SAMPLE *mercyvalley;
SAMPLE *waterville;
SAMPLE *haymarket;
SAMPLE *merryfield;
SAMPLE *stonecastle;
SAMPLE *buildersguild;
SAMPLE *fuzzyland;
SAMPLE *landslide;
SAMPLE *wishingwellfalls;
SAMPLE *bouldercanyon;
};
#endif