#include <AudioManager.h>
Public Member Functions | |
| AudioManager (std::string fileName) | |
| this is managed in other classes | |
| void | playMusic () |
| void | stopMusic () |
| void | playSound () |
| void | stopSound () |
| void | changeLoopState () |
| void | updateMusic (std::string newMusic) |
| is is initally false | |
| void | updateSound (std::string newSound) |
| void | setSoundPlaying (bool playing) |
| bool | getSoundPlaying () |
| AudioManager::AudioManager | ( | std::string | fileName | ) |
this is managed in other classes
checks if the file path can be found
loads the music file into a buffer
| void AudioManager::changeLoopState | ( | ) |
| bool AudioManager::getSoundPlaying | ( | ) |
| void AudioManager::playMusic | ( | ) |
Fetching the audio text file
Playing the audio
| void AudioManager::playSound | ( | ) |
sets the sound's buffer to the buffer of the music file
plays sound
| void AudioManager::setSoundPlaying | ( | bool | playing | ) |
| void AudioManager::stopMusic | ( | ) |
stopping the audio
| void AudioManager::stopSound | ( | ) |
stopping the audio
| void AudioManager::updateMusic | ( | std::string | newMusic | ) |
is is initally false
stops music
change music
| void AudioManager::updateSound | ( | std::string | newSound | ) |
stops music
change music