pub struct HostStreamConfig { /* private fields */ }Expand description
Accepted stream configuration returned by a host backend.
Implementations§
Source§impl HostStreamConfig
impl HostStreamConfig
Sourcepub fn from_request(
request: HostStreamConfigRequest,
latency: HostLatencyInfo,
clock: HostClockInfo,
) -> Self
pub fn from_request( request: HostStreamConfigRequest, latency: HostLatencyInfo, clock: HostClockInfo, ) -> Self
Builds an accepted configuration from a request plus the backend’s resolved latency and clock metadata.
Sourcepub fn media(&self) -> StreamMedia
pub fn media(&self) -> StreamMedia
Returns the accepted stream media.
Sourcepub fn direction(&self) -> HostDirection
pub fn direction(&self) -> HostDirection
Returns the accepted stream direction.
Sourcepub fn buffer(&self) -> &BufferPolicy
pub fn buffer(&self) -> &BufferPolicy
Returns the accepted buffer policy.
Sourcepub fn clock(&self) -> &HostClockInfo
pub fn clock(&self) -> &HostClockInfo
Returns the resolved clock metadata.
Sourcepub fn latency(&self) -> HostLatencyInfo
pub fn latency(&self) -> HostLatencyInfo
Returns the resolved latency estimate.
Sourcepub fn reconnect(&self) -> &HostReconnectPolicy
pub fn reconnect(&self) -> &HostReconnectPolicy
Returns the accepted reconnect policy.
Sourcepub fn metadata(&self) -> StreamMetadata
pub fn metadata(&self) -> StreamMetadata
Builds the StreamMetadata describing the opened stream.
Sourcepub fn validate_realtime_local_audio(&self) -> Result<()>
pub fn validate_realtime_local_audio(&self) -> Result<()>
Checks that this configuration is a valid realtime local audio stream.
Requires PCM media, the sample clock domain, and a bounded buffer; returns an evaluation error otherwise.
Sourcepub fn validate_lan_midi_control(&self) -> Result<()>
pub fn validate_lan_midi_control(&self) -> Result<()>
Checks that this configuration is a valid LAN MIDI/control stream.
Requires MIDI media, a MIDI-tick or control clock domain, and a bounded buffer; returns an evaluation error otherwise.
Sourcepub fn validate_lan_buffered_audio_preview(&self) -> Result<()>
pub fn validate_lan_buffered_audio_preview(&self) -> Result<()>
Checks that this configuration is a valid LAN buffered audio preview stream.
Requires PCM media and a bounded buffer; returns an evaluation error otherwise.
Trait Implementations§
Source§impl Clone for HostStreamConfig
impl Clone for HostStreamConfig
Source§fn clone(&self) -> HostStreamConfig
fn clone(&self) -> HostStreamConfig
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 HostStreamConfig
impl Debug for HostStreamConfig
impl Eq for HostStreamConfig
Source§impl PartialEq for HostStreamConfig
impl PartialEq for HostStreamConfig
Source§fn eq(&self, other: &HostStreamConfig) -> bool
fn eq(&self, other: &HostStreamConfig) -> bool
self and other values to be equal, and is used by ==.