Platformer
Platformer
Public Member Functions | Private Attributes | List of all members
SDLSoundWrapper Class Reference

A wrapper class for Mix_Chunks. More...

#include <SDLSoundWrapper.hpp>

Collaboration diagram for SDLSoundWrapper:
Collaboration graph

Public Member Functions

 SDLSoundWrapper (Mix_Chunk *ch)
 Constructs an SDLSoundWrapper. More...
 
 ~SDLSoundWrapper ()
 Destructs an SDLSoundWrapper.
 
Mix_Chunk * GetChunk () const
 Gets the Mix_Chunk of this wrapper. More...
 

Private Attributes

Mix_Chunk * chunk
 The wrapped Mix_Chunk.
 

Detailed Description

A wrapper class for Mix_Chunks.

Constructor & Destructor Documentation

◆ SDLSoundWrapper()

SDLSoundWrapper::SDLSoundWrapper ( Mix_Chunk *  ch)

Constructs an SDLSoundWrapper.

Parameters
chThe Mix_Chunk to be wrapped

Member Function Documentation

◆ GetChunk()

Mix_Chunk * SDLSoundWrapper::GetChunk ( ) const

Gets the Mix_Chunk of this wrapper.

Returns
The chunk

The documentation for this class was generated from the following files: