Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
sound_manager_messages.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2023 DS
4
5#pragma once
6
7#include "../sound.h"
8#include "../../sound.h"
9#include <variant>
10
11namespace sound {
12
13namespace sound_manager_messages_to_mgr {
14 struct PauseAll {};
15 struct ResumeAll {};
16
18 struct SetListenerGain { f32 gain; };
19
20 struct LoadSoundFile { std::string name; std::string filepath; };
21 struct LoadSoundData { std::string name; std::string filedata; };
22 struct AddSoundToGroup { std::string sound_name; std::string group_name; };
23
29
30 struct PleaseStop {};
31}
32
33using SoundManagerMsgToMgr = std::variant<
34 std::monostate,
35
38
41
45
51
53 >;
54
55namespace sound_manager_messages_to_proxy {
57
58 struct Stopped {};
59}
60
61using SoundManagerMsgToProxy = std::variant<
62 std::monostate,
63
65
67 >;
68
69} // namespace sound
int sound_handle_t
Definition client.h:62
core::vector3df v3f
Definition irr_v3d.h:11
Definition al_extensions.cpp:11
std::variant< std::monostate, sound_manager_messages_to_proxy::ReportRemovedSound, sound_manager_messages_to_proxy::Stopped > SoundManagerMsgToProxy
Definition sound_manager_messages.h:61
std::variant< std::monostate, sound_manager_messages_to_mgr::PauseAll, sound_manager_messages_to_mgr::ResumeAll, sound_manager_messages_to_mgr::UpdateListener, sound_manager_messages_to_mgr::SetListenerGain, sound_manager_messages_to_mgr::LoadSoundFile, sound_manager_messages_to_mgr::LoadSoundData, sound_manager_messages_to_mgr::AddSoundToGroup, sound_manager_messages_to_mgr::PlaySound, sound_manager_messages_to_mgr::PlaySoundAt, sound_manager_messages_to_mgr::StopSound, sound_manager_messages_to_mgr::FadeSound, sound_manager_messages_to_mgr::UpdateSoundPosVel, sound_manager_messages_to_mgr::PleaseStop > SoundManagerMsgToMgr
Definition sound_manager_messages.h:33
Describes the sound information for playback.
Definition sound.h:20
Definition sound_manager_messages.h:22
std::string group_name
Definition sound_manager_messages.h:22
std::string sound_name
Definition sound_manager_messages.h:22
Definition sound_manager_messages.h:27
f32 target_gain
Definition sound_manager_messages.h:27
f32 step
Definition sound_manager_messages.h:27
sound_handle_t soundid
Definition sound_manager_messages.h:27
Definition sound_manager_messages.h:21
std::string name
Definition sound_manager_messages.h:21
std::string filedata
Definition sound_manager_messages.h:21
Definition sound_manager_messages.h:20
std::string name
Definition sound_manager_messages.h:20
std::string filepath
Definition sound_manager_messages.h:20
Definition sound_manager_messages.h:14
Definition sound_manager_messages.h:25
sound_handle_t id
Definition sound_manager_messages.h:25
v3f vel_
Definition sound_manager_messages.h:25
SoundSpec spec
Definition sound_manager_messages.h:25
v3f pos_
Definition sound_manager_messages.h:25
Definition sound_manager_messages.h:24
SoundSpec spec
Definition sound_manager_messages.h:24
sound_handle_t id
Definition sound_manager_messages.h:24
Definition sound_manager_messages.h:30
Definition sound_manager_messages.h:15
Definition sound_manager_messages.h:18
f32 gain
Definition sound_manager_messages.h:18
Definition sound_manager_messages.h:26
sound_handle_t sound
Definition sound_manager_messages.h:26
Definition sound_manager_messages.h:17
v3f pos_
Definition sound_manager_messages.h:17
v3f vel_
Definition sound_manager_messages.h:17
v3f at_
Definition sound_manager_messages.h:17
v3f up_
Definition sound_manager_messages.h:17
Definition sound_manager_messages.h:28
sound_handle_t sound
Definition sound_manager_messages.h:28
v3f pos_
Definition sound_manager_messages.h:28
v3f vel_
Definition sound_manager_messages.h:28
sound_handle_t id
Definition sound_manager_messages.h:56
Definition sound_manager_messages.h:58