Started milestone 2
This commit is contained in:
@@ -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).
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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};
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user