pub struct ConnectionProperty {
pub buffer: usize,
pub valid_frame_count: u32,
pub flags: BufferFlags,
pub signature: u32,
}Expand description
Audio buffer descriptor handed to / from APOProcess.
Cross-platform mirror of the Windows
APO_CONNECTION_PROPERTY C struct. The framework’s COM harness
translates one of these per input and per output connection
when dispatching into crate::ProcessingObject::process.
buffer is a raw address (usize) to match Windows’s
UINT_PTR pBuffer. Higher-level code that wraps the COM
harness will turn this into a typed slice; doing so here is
premature because the Format negotiated between the audio
engine and the APO determines the element type and layout.
signature carries the 'APOC' magic the host stamps onto
every connection (see
CONNECTION_PROPERTY_SIGNATURE); the harness checks it
before trusting the rest of the struct.
Fields§
§buffer: usizeRaw address of the audio buffer (pBuffer).
valid_frame_count: u32Number of audio frames containing valid data
(u32ValidFrameCount).
flags: BufferFlagsBuffer status flags (u32BufferFlags).
signature: u32'APOC' magic for tamper detection (u32Signature). The
COM harness rejects buffers whose signature does not
match CONNECTION_PROPERTY_SIGNATURE.
Implementations§
Trait Implementations§
Source§impl Clone for ConnectionProperty
impl Clone for ConnectionProperty
Source§fn clone(&self) -> ConnectionProperty
fn clone(&self) -> ConnectionProperty
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConnectionProperty
impl Debug for ConnectionProperty
Source§impl PartialEq for ConnectionProperty
impl PartialEq for ConnectionProperty
Source§fn eq(&self, other: &ConnectionProperty) -> bool
fn eq(&self, other: &ConnectionProperty) -> bool
self and other values to be equal, and is used by ==.