1 parent
e7573fbcd0
commit
295542ab9e
3 files changed
+53
-3
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user