Initialize project and implement decentralized voice chat client (PipeWire, Opus, Iroh, Iced)
This commit is contained in:
@@ -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),
|
||||
}
|
||||
Reference in New Issue
Block a user