|
R-Type
Distributed multiplayer game engine in C++
|
Interface for sound effect management in menus. More...
#include <ISoundEffectService.hpp>


Public Member Functions | |
| virtual | ~ISoundEffectService ()=default |
| virtual void | PlayClickSound ()=0 |
| Play the button click sound effect. | |
| virtual void | PlayMainMenuOpenSound ()=0 |
| Play the main menu open sound effect. | |
| virtual void | PlayRoomMenuOpenSound ()=0 |
| Play the room menu open sound effect. | |
| virtual void | SetVolume (float volume)=0 |
| Set the master volume for all sound effects. | |
| virtual float | GetVolume () const =0 |
| Get the current master volume. | |
Interface for sound effect management in menus.
This interface provides a high-level abstraction for playing sound effects in the UI layer. Implementations should handle loading, caching, and playing sounds.
Follows the Interface Segregation Principle by providing only the methods needed for menu sound effects.
Definition at line 21 of file ISoundEffectService.hpp.
|
virtualdefault |
|
pure virtual |
Get the current master volume.
Implemented in Audio::SoundEffectManager.
|
pure virtual |
Play the button click sound effect.
Implemented in Audio::SoundEffectManager.
Referenced by Game::BaseMenu::WrapWithClickSound().
|
pure virtual |
Play the main menu open sound effect.
Implemented in Audio::SoundEffectManager.
Referenced by Game::MainMenu::Show().
|
pure virtual |
Play the room menu open sound effect.
Implemented in Audio::SoundEffectManager.
Referenced by Game::RoomListMenu::Show().
|
pure virtual |
Set the master volume for all sound effects.
| volume | Volume level (0.0 to 1.0) |
Implemented in Audio::SoundEffectManager.