mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-05 02:39:41 +01:00
d193caac98
This reverts commit 2f760af439
.
29 lines
397 B
C++
29 lines
397 B
C++
#ifndef SOUNDSYSTEM_H
|
|
#define SOUNDSYSTEM_H
|
|
|
|
#include <SDL_mixer.h>
|
|
|
|
class MusicTrack
|
|
{
|
|
public:
|
|
MusicTrack(const char* fileName);
|
|
MusicTrack(SDL_RWops *rw);
|
|
Mix_Music *m_music;
|
|
bool m_isValid;
|
|
};
|
|
|
|
class SoundTrack
|
|
{
|
|
public:
|
|
SoundTrack(const char* fileName);
|
|
Mix_Chunk *sound;
|
|
};
|
|
|
|
class SoundSystem
|
|
{
|
|
public:
|
|
SoundSystem();
|
|
void playMusic(MusicTrack* music);
|
|
};
|
|
|
|
#endif /* SOUNDSYSTEM_H */
|