mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-31 02:14:09 +03:00
Hello WWWWWWorld!
This commit is contained in:
29
desktop_version/src/SoundSystem.h
Normal file
29
desktop_version/src/SoundSystem.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#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 */
|
||||
Reference in New Issue
Block a user