Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
VoiceChatLegacyContract.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "RuleTypes.hpp"
5
6#include <array>
7#include <expected>
8#include <string>
9#include <string_view>
10
12{
13 inline constexpr int SamplesPerSecond = 11025;
14 inline constexpr int BitsPerSample = 8;
15 inline constexpr int Channels = 1;
16 inline constexpr std::size_t MaxCompressors = 50;
17
18 inline constexpr std::array<std::wstring_view, 2> CompressorNames{
19 L"No Compression",
20 L"GSM 6.10"
21 };
22
24 std::wstring_view name) noexcept;
25
26 [[nodiscard]] std::expected<AudioRuntime::Settings, std::string>
28}
const char * name
unsigned index
bool compressorSupported(std::wstring_view name) noexcept
constexpr std::array< std::wstring_view, 2 > CompressorNames
std::expected< AudioRuntime::Settings, std::string > captureSettings(const rules::VoiceChatOptions &options)