Level H Engine
Public Member Functions | Private Attributes | List of all members
Audio Class Reference

Handles audio using SDL_Mixer. More...

#include <Audio.h>

Collaboration diagram for Audio:
Collaboration graph

Public Member Functions

 Audio (std::string file)
 Constructs the Audio object. More...
 
 ~Audio ()
 Destructs the Audio object. More...
 
void playEffect ()
 Plays the sound effect. More...
 

Private Attributes

Mix_Chunk * audio
 Variable for the audio. More...
 

Detailed Description

Handles audio using SDL_Mixer.

Constructor & Destructor Documentation

◆ Audio()

Audio::Audio ( std::string  file)

Constructs the Audio object.

Parameters
fileThe file to be loaded.
Here is the call graph for this function:

◆ ~Audio()

Audio::~Audio ( )

Destructs the Audio object.

Member Function Documentation

◆ playEffect()

void Audio::playEffect ( )

Plays the sound effect.

Here is the caller graph for this function:

Member Data Documentation

◆ audio

Mix_Chunk* Audio::audio
private

Variable for the audio.


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