Argentum Online - Cliente
sdl_sfx.h
1 #ifndef __SDL_SFX_H
2 #define __SDL_SFX_H
3 
4 #include <string>
5 
6 #include "SDL2/SDL.h"
7 #include "SDL2/SDL_mixer.h"
8 
13 class SDLSoundFx {
14  private:
15  Mix_Chunk* sound;
16 
17  public:
23  SDLSoundFx(const std::string& filename);
24  ~SDLSoundFx();
25 
30  void play();
31 };
32 
33 #endif
SDLSoundFx
Objeto de efecto de sonido de SDL.
Definition: sdl_sfx.h:13
SDLSoundFx::play
void play()
Reproduce el efecto de sonido.
Definition: sdl_sfx.cpp:16
SDLSoundFx::SDLSoundFx
SDLSoundFx(const std::string &filename)
Construye un nuevo objeto SDLSoundFx.
Definition: sdl_sfx.cpp:5