group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
net::voice Namespace Reference

Classes

struct  ClientVoiceFrame
struct  ClientVoiceFrameView
struct  ServerVoiceFrame

Functions

std::vector< std::uint8_t > encodeClientFrame (std::uint16_t sequence, std::uint8_t frameMs, std::span< const std::uint8_t > opus)
std::vector< std::uint8_t > encodeServerFrame (ClientId speaker, std::uint16_t sequence, std::uint8_t frameMs, std::span< const std::uint8_t > opus)
std::optional< ClientVoiceFramedecodeClientFrame (std::span< const std::uint8_t > payload)
std::optional< ClientVoiceFrameViewdecodeClientFrameView (std::span< const std::uint8_t > payload)
std::optional< ServerVoiceFramedecodeServerFrame (std::span< const std::uint8_t > payload)

Variables

constexpr int k_sampleRate = 48000
constexpr int k_channels = 1
constexpr std::uint8_t k_frameMs = 20
constexpr std::uint16_t k_maxOpusBytes = 512

Function Documentation

◆ decodeClientFrame()

std::optional< ClientVoiceFrame > net::voice::decodeClientFrame ( std::span< const std::uint8_t > payload)
nodiscard
Here is the call graph for this function:

◆ decodeClientFrameView()

std::optional< ClientVoiceFrameView > net::voice::decodeClientFrameView ( std::span< const std::uint8_t > payload)
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ decodeServerFrame()

std::optional< ServerVoiceFrame > net::voice::decodeServerFrame ( std::span< const std::uint8_t > payload)
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ encodeClientFrame()

std::vector< std::uint8_t > net::voice::encodeClientFrame ( std::uint16_t sequence,
std::uint8_t frameMs,
std::span< const std::uint8_t > opus )
nodiscard
Here is the caller graph for this function:

◆ encodeServerFrame()

std::vector< std::uint8_t > net::voice::encodeServerFrame ( ClientId speaker,
std::uint16_t sequence,
std::uint8_t frameMs,
std::span< const std::uint8_t > opus )
nodiscard
Here is the caller graph for this function:

Variable Documentation

◆ k_channels

int net::voice::k_channels = 1
inlineconstexpr

◆ k_frameMs

std::uint8_t net::voice::k_frameMs = 20
inlineconstexpr

◆ k_maxOpusBytes

std::uint16_t net::voice::k_maxOpusBytes = 512
inlineconstexpr

◆ k_sampleRate

int net::voice::k_sampleRate = 48000
inlineconstexpr