R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
ISoundEffectService.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2025
3** r-type
4** File description:
5** ISoundEffectService - Interface for sound effect management
6*/
7
8#pragma once
9
10namespace Audio {
22 public:
23 virtual ~ISoundEffectService() = default;
24
28 virtual void PlayClickSound() = 0;
29
33 virtual void PlayMainMenuOpenSound() = 0;
34
38 virtual void PlayRoomMenuOpenSound() = 0;
39
44 virtual void SetVolume(float volume) = 0;
45
50 [[nodiscard]] virtual float GetVolume() const = 0;
51 };
52} // namespace Audio
Interface for sound effect management in menus.
virtual void PlayClickSound()=0
Play the button click sound effect.
virtual float GetVolume() const =0
Get the current master volume.
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 ~ISoundEffectService()=default