mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-17 16:39:42 +01:00
30 lines
397 B
C
30 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 */
|