mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 09:54:10 +03:00
Consolidate SoundSystem into Music.
It's just some small wrappers, and SoundSystem can be inlined trivially.
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user