13 #include <SDL2/SDL_mixer.h> 
   28     Sample(
const std::string &path, 
int volume, 
bool stack = 
false);
 
   52     std::unique_ptr<Mix_Chunk, void (*)(Mix_Chunk *)> chunk;
 
   54     int playing_channel = -1;
 
Definition: sample.hpp:18
 
void play()
Play the Sample on a free mixer channel.
Definition: sample.cpp:15
 
void set_volume(int volume)
Set the volume of the Sample.
Definition: sample.cpp:35
 
Sample(const std::string &path, int volume, bool stack=false)
Construct the Sample object.
Definition: sample.cpp:3