|
Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
|
Namespaces | |
| namespace | detail |
Classes | |
| struct | Event |
| struct | WaveFormat |
Typedefs | |
| using | EventSink = bool(*)(const Event &, std::uint32_t sourceId) |
Enumerations | |
| enum class | EventKind : std::uint8_t { Start , Dimensions , Volume , Data , DataAfterSilence , Position , Stop } |
| enum class | ParseStatus : std::uint8_t { Ok , Malformed , SinkRejected } |
Functions | |
| constexpr std::uint32_t | fourCC (char a, char b, char c, char d) noexcept |
| std::uint16_t | readLe16 (std::span< const std::uint8_t > bytes, std::size_t offset) noexcept |
| std::uint32_t | readLe32 (std::span< const std::uint8_t > bytes, std::size_t offset) noexcept |
| WaveFormat | readWaveFormat (std::span< const std::uint8_t > bytes) noexcept |
| ParseStatus | emit (EventSink sink, std::uint32_t sourceId, const Event &event) noexcept |
| ParseStatus | parseChatSubchunks (std::span< const std::uint8_t > bytes, std::uint32_t sourceId, EventSink sink) noexcept |
| ParseStatus | parse (std::span< const std::uint8_t > bytes, std::uint32_t sourceId, EventSink sink=nullptr) noexcept |
| bool | makeStartPacket (WaveFormat format, std::span< const std::uint8_t > extraFormatBytes, std::uint32_t dimensions, std::uint32_t volume, std::vector< std::uint8_t > &packet) |
| bool | makeDataPacket (std::span< const std::uint8_t > data, bool afterSilence, std::vector< std::uint8_t > &packet) |
| bool | makeStopPacket (std::vector< std::uint8_t > &packet) |
| bool | makePositionPacket (std::span< const float > coordinates, std::vector< std::uint8_t > &packet) |
Variables | |
| constexpr std::size_t | MaximumPacketBytes |
| using monopoly::voicechat::packet::EventSink = typedef bool (*)(const Event&, std::uint32_t sourceId) |
Definition at line 52 of file VoiceChatPacket.hpp.
|
strong |
| Enumerator | |
|---|---|
| Start | |
| Dimensions | |
| Volume | |
| Data | |
| DataAfterSilence | |
| Position | |
| Stop | |
Definition at line 15 of file VoiceChatPacket.hpp.
|
strong |
| Enumerator | |
|---|---|
| Ok | |
| Malformed | |
| SinkRejected | |
Definition at line 45 of file VoiceChatPacket.hpp.
|
inlinenoexcept |
Definition at line 90 of file VoiceChatPacket.hpp.
|
constexprnoexcept |
Definition at line 54 of file VoiceChatPacket.hpp.
|
inline |
Definition at line 271 of file VoiceChatPacket.hpp.
|
inline |
Definition at line 287 of file VoiceChatPacket.hpp.
|
inline |
Definition at line 235 of file VoiceChatPacket.hpp.
|
inline |
Definition at line 281 of file VoiceChatPacket.hpp.
|
inlinenoexcept |
Definition at line 151 of file VoiceChatPacket.hpp.
|
inlinenoexcept |
Definition at line 98 of file VoiceChatPacket.hpp.
|
inlinenoexcept |
Definition at line 63 of file VoiceChatPacket.hpp.
|
inlinenoexcept |
Definition at line 71 of file VoiceChatPacket.hpp.
|
inlinenoexcept |
Definition at line 80 of file VoiceChatPacket.hpp.
|
inlineconstexpr |
Definition at line 12 of file VoiceChatPacket.hpp.