◆ Sample()
      
        
          | Sample::Sample  | 
          ( | 
          const std::string &  | 
          path,  | 
        
        
           | 
           | 
          int  | 
          volume,  | 
        
        
           | 
           | 
          bool  | 
          stack = false  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Construct the Sample object. 
- Parameters
 - 
  
    | path | Path to the sound effect  | 
    | volume | Volume to play the sound effect at  | 
    | stack | If the audio can stack on top of itself  | 
  
   
 
 
◆ play()
      
        
          | void Sample::play  | 
          ( | 
          int  | 
          times | ) | 
           | 
        
      
 
Play the Sample on a free mixer channel with a loop of an amount. 
- Parameters
 - 
  
    | times | Repeat for this many times  | 
  
   
 
 
◆ set_volume()
      
        
          | void Sample::set_volume  | 
          ( | 
          int  | 
          volume | ) | 
           | 
        
      
 
Set the volume of the Sample. 
- Parameters
 - 
  
  
 
 
 
The documentation for this class was generated from the following files: