Started milestone 2

This commit is contained in:
sam
2026-05-03 15:53:25 +02:00
parent 43483c2145
commit 041955345b
18 changed files with 4616 additions and 60 deletions

View File

@@ -1,6 +1,6 @@
//! Fixed system-wide specifications.
//!
//! Contains constants required for hardware configuration, network binding,
//! Contains constants required for hardware configuration, network binding,
//! and math routines such as audio framing lengths.
/// The uniform audio sampling rate (48 kHz).

View File

@@ -1,7 +1,7 @@
//! Core Protocol definitions for the Voice App.
//!
//! This module defines the foundational types and constants shared between the
//! client and server nodes. It ensures that both ends of the connection speak the
//! This module defines the foundational types and constants shared between the
//! client and server nodes. It ensures that both ends of the connection speak the
//! exact same structural language for serialization/deserialization.
#![forbid(unsafe_code)]

View File

@@ -1,6 +1,6 @@
//! TCP Control Lane events.
//!
//! Defines the reliable commands sent over the TCP connection for state
//! Defines the reliable commands sent over the TCP connection for state
//! synchronization, such as authentication and text chat.
use serde::{Deserialize, Serialize};

View File

@@ -6,8 +6,8 @@
use serde::{Deserialize, Serialize};
/// The header attached to every UDP voice frame.
///
/// We separate this from the payload to allow the server to rapidly route packets
///
/// We separate this from the payload to allow the server to rapidly route packets
/// using just the `session_token` without fully deserializing the heavy audio data.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct VoicePacketHeader {