Platformer
Platformer
SDLSoundWrapper.hpp
1 #ifndef SDL_SOUND_WRAPPER_HPP
2 #define SDL_SOUND_WRAPPER_HPP
3 
4 #include <SDL2/SDL_mixer.h>
5 
10  public:
11 
14  Mix_Chunk* ch);
15 
18 
23  Mix_Chunk* GetChunk() const;
24 
25  private:
26 
28  Mix_Chunk* chunk;
29 };
30 
31 #endif
Mix_Chunk * chunk
The wrapped Mix_Chunk.
Definition: SDLSoundWrapper.hpp:28
~SDLSoundWrapper()
Destructs an SDLSoundWrapper.
Definition: SDLSoundWrapper.cpp:5
Mix_Chunk * GetChunk() const
Gets the Mix_Chunk of this wrapper.
Definition: SDLSoundWrapper.cpp:7
SDLSoundWrapper(Mix_Chunk *ch)
Constructs an SDLSoundWrapper.
Definition: SDLSoundWrapper.cpp:3
A wrapper class for Mix_Chunks.
Definition: SDLSoundWrapper.hpp:9