Consolidate SoundSystem into Music.

It's just some small wrappers, and SoundSystem can be inlined trivially.
This commit is contained in:
Ethan Lee
2021-12-26 08:38:16 -05:00
parent f723e03871
commit c87f0e1a0c
6 changed files with 80 additions and 85 deletions

View File

@@ -4,7 +4,32 @@
#include <vector>
#include "BinaryBlob.h"
#include "SoundSystem.h"
#include <SDL_mixer.h>
/* SDL_mixer object wrappers */
class MusicTrack
{
public:
MusicTrack(SDL_RWops *rw);
Mix_Music *m_music;
bool m_isValid;
};
class SoundTrack
{
public:
SoundTrack(const char* fileName);
Mix_Chunk *sound;
};
/* SDL_mixer init wrapper */
class SoundSystem
{
public:
SoundSystem(void);
};
#define musicroom(rx, ry) ((rx) + ((ry) * 20))