pub(crate) struct PbShared {
pub(crate) inner: Arc<Inner>,
pub(crate) thread: Mutex<Option<JoinHandle<()>>>,
pub(crate) queue: Arc<PlayQueue>,
pub(crate) opus_dec: Mutex<Option<OpusPlaybackDecoder>>,
}Expand description
Per-AudioPlayback shared handle — the mirror of Shared for the playback path.
Reuses the capture lifecycle core on Inner (the stop_state protocol, the start
handshake, and the worker-tid re-entrancy guard); the Opus/silence settings mirrors on
Inner are unused here. Adds the bounded PCM queue and the always-Opus mic decoder.
Fields§
§inner: Arc<Inner>§thread: Mutex<Option<JoinHandle<()>>>§queue: Arc<PlayQueue>§opus_dec: Mutex<Option<OpusPlaybackDecoder>>The mic uplink is always Opus; write / write_red decode each packet through this
before enqueuing PCM. Set at start(); None only before a successful start.
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more