Use an absolute directory in /usr/share/games/ for game data
[kball.git] / include / musiclvl.h
blobcd6ee135023b3646ac01970bf88e25e16813b905
1 // ------------------------------------------------------------------
2 // musiclvl.h
3 // System for handling level's music
4 // ------------------------------------------------------------------
5 // By Kronoman - In loving memory of my father
6 // Copyright (c) 2004, Kronoman
7 // ------------------------------------------------------------------
8 #ifndef MUSICLVL_H
9 #define MUSICLVL_H
11 #include <allegro.h>
12 #include <aldumb.h> // DUMB : http://dumb.sf.net/
14 // music level loader
15 class CMusicLvl
17 public:
18 CMusicLvl();
19 ~CMusicLvl();
21 DUH *get_music(char *filename, int index); // gets the music from file, or a default music (NULL) otherwise
22 void free_memory(); // releases memory and returns to default music
24 private:
25 DUH *music_in_ram;
26 DATAFILE *data_loaded;
28 // cache stuff
29 char file_loaded[1024]; // wich file we have in memory
30 int index_loaded;
34 #endif