- Música i só amb SDL_mixer

This commit is contained in:
2023-01-12 19:02:17 +01:00
parent 7ecd11a169
commit 9c24d33782
7 changed files with 121 additions and 389 deletions

13
mini.h
View File

@@ -2,7 +2,7 @@
#include <SDL2/SDL.h>
#define MINI_VERSION "0.9.02d"
#define MINI_VERSION "0.9.32d"
#define KEY_UNKNOWN 0
#define KEY_A 4
@@ -257,7 +257,14 @@ const char *freads();
const char *freadw();
bool freadb();
void playchirp(const char *song);
void stopchirp();
void playmusic(const char *filename, const int volume=-1);
void pausemusic();
void resumemusic();
void stopmusic();
int loadsound(const char *filename);
void freesound(int soundfile);
int playsound(int soundfile, const int volume=-1);
void stopsound(int soundchannel);
void exit();