From 295542ab9e80c609de3babdc2540025ae094d8bb Mon Sep 17 00:00:00 2001 From: faumaray Date: Sun, 12 Jul 2026 02:56:42 +0300 Subject: [PATCH] Update Signed-off-by: faumaray --- include/echoion/api/base/Types.hpp | 4 +-- .../api/interfaces/PluginInterface.hpp | 34 +++++++++++++++++++ include/echoion/api/rpc/RpcTypes.hpp | 18 +++++++++- 3 files changed, 53 insertions(+), 3 deletions(-) diff --git a/include/echoion/api/base/Types.hpp b/include/echoion/api/base/Types.hpp index d0eb393..03dbb2b 100644 --- a/include/echoion/api/base/Types.hpp +++ b/include/echoion/api/base/Types.hpp @@ -16,9 +16,9 @@ namespace Echoion::Api // Version constants inline constexpr uint32_t VERSION_MAJOR = 1; - inline constexpr uint32_t VERSION_MINOR = 0; + inline constexpr uint32_t VERSION_MINOR = 1; inline constexpr uint32_t VERSION_PATCH = 0; - inline constexpr const char* VERSION_STRING = "1.0.0"; + inline constexpr const char* VERSION_STRING = "1.1.0"; using namespace std::chrono_literals; diff --git a/include/echoion/api/interfaces/PluginInterface.hpp b/include/echoion/api/interfaces/PluginInterface.hpp index 1b9d5fd..1be9787 100644 --- a/include/echoion/api/interfaces/PluginInterface.hpp +++ b/include/echoion/api/interfaces/PluginInterface.hpp @@ -102,6 +102,40 @@ namespace Echoion::Api virtual Result setWhisperList(const std::vector& clientIds) = 0; + // Independent audio timelines. A TeamSpeak connection has one voice + // sequence, so hosts implement each stream with its own connection and + // encoder. The default methods preserve compatibility for hosts that only + // support the primary stream. + using AudioStreamId = uint64_t; + struct AudioStreamOptions { + std::string name; + ServerConfig server; + std::vector recipients; + }; + [[nodiscard]] virtual Result + createAudioStream(const AudioStreamOptions&) + { + return fail(ErrorCode::NotSupported, + "independent audio streams are not supported by this host"); + } + virtual Result destroyAudioStream(AudioStreamId) + { + return fail(ErrorCode::NotSupported, + "independent audio streams are not supported by this host"); + } + virtual Result sendAudioDataToStream( + AudioStreamId, const std::span&) + { + return fail(ErrorCode::NotSupported, + "independent audio streams are not supported by this host"); + } + virtual Result setAudioStreamRecipients( + AudioStreamId, const std::vector&) + { + return fail(ErrorCode::NotSupported, + "independent audio streams are not supported by this host"); + } + // Server connection // ServerConfig is defined in PluginTypes.hpp (self-contained) virtual Result diff --git a/include/echoion/api/rpc/RpcTypes.hpp b/include/echoion/api/rpc/RpcTypes.hpp index be9a93b..f50df28 100644 --- a/include/echoion/api/rpc/RpcTypes.hpp +++ b/include/echoion/api/rpc/RpcTypes.hpp @@ -96,7 +96,23 @@ namespace Echoion::Api RemoveCustomEmoji, // admin: delete a custom emoji // Web UI round 5 (appended): lyrics for the current track (lrclib) - GetLyrics // plain + time-synced lyrics for the now-playing track + GetLyrics, // plain + time-synced lyrics for the now-playing track + + // Independent named TeamSpeak listening rooms. + ListListeningRooms, + CreateListeningRoom, + DeleteListeningRoom, + JoinListeningRoom, + LeaveListeningRoom, + PlayInListeningRoom, + PauseListeningRoom, + ResumeListeningRoom, + StopListeningRoom, + GetListeningRoomQueue, + SkipListeningRoom, + RemoveFromListeningRoomQueue, + MoveInListeningRoomQueue, + ClearListeningRoomQueue }; struct RpcRequest {