|
Zappy GUI
C++ graphic client: renderer, camera, network
|
Abstract audio manager providing common event mapping logic. More...
#include <AAudioManager.hpp>
Inheritance diagram for AAudioManager:
Collaboration diagram for AAudioManager:Public Member Functions | |
| virtual | ~AAudioManager ()=default |
| void | handleEvent (const Event &event) override |
| Handles a game event to trigger the appropriate sound. | |
Public Member Functions inherited from IAudioManager | |
| virtual | ~IAudioManager ()=default |
| virtual void | init ()=0 |
| Initializes the audio subsystem. | |
| virtual void | shutdown ()=0 |
| Cleans up audio resources and shuts down the subsystem. | |
Protected Member Functions | |
| virtual void | playSound (const std::string &key, const std::string &filepath)=0 |
| Plays a sound associated with a specific key. | |
Abstract audio manager providing common event mapping logic.
Definition at line 11 of file AAudioManager.hpp.
|
virtualdefault |
|
overridevirtual |
Handles a game event to trigger the appropriate sound.
| event | The game event to handle. |
Implements IAudioManager.
Definition at line 6 of file AAudioManager.cpp.
References playSound().
Here is the call graph for this function:
|
protectedpure virtual |
Plays a sound associated with a specific key.
| key | The key identifying the sound to play. |
| filepath | The file path to the sound file. |
Implemented in NullAudioManager, and RaylibAudioManager.
Referenced by handleEvent().
Here is the caller graph for this function: