Singleton responisble for loading and retrieving Sounds.
More...
#include <SoundManager.h>
|
| using | MapKey = std::string |
| | KEYS stored as STRINGS.
|
| |
Singleton responisble for loading and retrieving Sounds.
◆ MapKey
◆ GetSoundMono()
| static Sound SoundManager::GetSoundMono |
( |
const MapKey & | key | ) |
|
|
static |
Returns Mono Sound with given KEY.
A function that returns a mono sound based on a user generated key. Checks if key already exists.
- Warning
- Certain Functions Require Mono Sounds Only
- Parameters
-
- Returns
- Sound
◆ GetSoundStereo()
| static Sound SoundManager::GetSoundStereo |
( |
const MapKey & | key | ) |
|
|
static |
Returns Stereo Sound with given KEY.
A function that returns a stereo sound based on a user generated key. Checks if key already exists.
- Warning
- Certain Functions Require Stereo Sounds Only
- Parameters
-
- Returns
- Sound
◆ LoadSoundMono()
| static void SoundManager::LoadSoundMono |
( |
const MapKey & | key, |
|
|
const std::string & | path ) |
|
static |
Load Shader with KEY and FILE PATH.
A function callable in SlippersResources/LoadResources that takes in a String as a key for retrieval, as well as a file path for a mono sound existing in Assets/Shaders. Checks for repeated key use.
- Warning
- Will fail if sound is not mono.
- Parameters
-
◆ LoadSoundStereo()
| static void SoundManager::LoadSoundStereo |
( |
const MapKey & | key, |
|
|
const std::string & | path ) |
|
static |
Load Shader with KEY and FILE PATH.
A function callable in SlippersResources/LoadResources that takes in a String as a key for retrieval, as well as a file path for a stereo sound existing in Assets/Shaders. Checks for repeated key use.
- Warning
- Will fail if sound is not stereo.
- Parameters
-