Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-12 02:56:42 +03:00
1 parent e7573fbcd0
commit 295542ab9e
3 files changed
+53 -3

No files matched your search

+2 -2
View File
@@ -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;
@@ -102,6 +102,40 @@ namespace Echoion::Api
virtual Result<void>
setWhisperList(const std::vector<uint64_t>& 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<uint64_t> recipients;
};
[[nodiscard]] virtual Result<AudioStreamId>
createAudioStream(const AudioStreamOptions&)
{
return fail(ErrorCode::NotSupported,
"independent audio streams are not supported by this host");
}
virtual Result<void> destroyAudioStream(AudioStreamId)
{
return fail(ErrorCode::NotSupported,
"independent audio streams are not supported by this host");
}
virtual Result<void> sendAudioDataToStream(
AudioStreamId, const std::span<const short>&)
{
return fail(ErrorCode::NotSupported,
"independent audio streams are not supported by this host");
}
virtual Result<void> setAudioStreamRecipients(
AudioStreamId, const std::vector<uint64_t>&)
{
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<void>
+17 -1
View File
@@ -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 {