Initialize project and implement decentralized voice chat client (PipeWire, Opus, Iroh, Iced)

This commit is contained in:
2026-05-27 05:18:56 -04:00
commit 1220d94e91
15 changed files with 9177 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
use crate::network::PeerState;
use iroh::EndpointId;
#[derive(Debug, Clone)]
pub enum CoreCommand {
Join { name: String, ticket: String },
Leave,
ToggleMute,
ToggleDeafen,
}
#[derive(Debug, Clone)]
pub enum UiEvent {
RoomJoined { ticket: String, self_id: String },
RoomLeft,
PeerJoined { id: EndpointId, state: PeerState },
PeerLeft { id: EndpointId },
PeerUpdated { id: EndpointId, state: PeerState },
AudioLevels(Vec<(EndpointId, f32)>),
Error(String),
}