pub struct DeviceCatalog { /* private fields */ }Expand description
Registry of stream-device providers.
Implementations§
Source§impl DeviceCatalog
impl DeviceCatalog
Sourcepub fn default_modeled() -> Self
pub fn default_modeled() -> Self
Builds a catalog with deterministic modeled MIDI and audio providers.
Sourcepub fn with_registry_audio_devices(registry: &Registry) -> Self
pub fn with_registry_audio_devices(registry: &Registry) -> Self
Builds a modeled catalog plus audio devices exported by loaded libs.
Sourcepub fn register(&mut self, provider: Box<dyn DeviceProvider>)
pub fn register(&mut self, provider: Box<dyn DeviceProvider>)
Registers a device provider.
Sourcepub fn register_provider_sites(&mut self, router: &AudioRouter)
pub fn register_provider_sites(&mut self, router: &AudioRouter)
Adds a snapshot of the audio sites currently registered by a provider.
Sourcepub fn register_registry_audio_devices(&mut self, registry: &Registry)
pub fn register_registry_audio_devices(&mut self, registry: &Registry)
Adds audio-device records currently owned by loaded registry libs.
Sourcepub fn enumerate(&self) -> Result<Vec<DeviceRecord>>
pub fn enumerate(&self) -> Result<Vec<DeviceRecord>>
Enumerates every registered provider.
Sourcepub fn open(&self, id: &Symbol) -> Result<Box<dyn StreamEvalSite>>
pub fn open(&self, id: &Symbol) -> Result<Box<dyn StreamEvalSite>>
Opens a cataloged stream evaluation site by device id.
Sourcepub fn open_live(&self, id: &Symbol) -> Result<MidiLiveEvalSite>
pub fn open_live(&self, id: &Symbol) -> Result<MidiLiveEvalSite>
Opens a cataloged MIDI device as a live MIDI evaluation site.
Sourcepub fn enumerate_midi(&self) -> Result<Vec<DeviceRecord>>
pub fn enumerate_midi(&self) -> Result<Vec<DeviceRecord>>
Enumerates MIDI device rows.
Sourcepub fn enumerate_audio(&self) -> Result<Vec<DeviceRecord>>
pub fn enumerate_audio(&self) -> Result<Vec<DeviceRecord>>
Enumerates audio device rows.
Sourcepub fn audio_backend_names(&self) -> Result<Vec<String>>
pub fn audio_backend_names(&self) -> Result<Vec<String>>
Returns safe audio backend candidate names from catalog records.
Hardware records contribute their transport name. Modeled records keep
the deterministic modeled fallback as the final candidate.
Sourcepub fn midi_backend_names(&self) -> Result<Vec<String>>
pub fn midi_backend_names(&self) -> Result<Vec<String>>
Returns safe MIDI backend candidate names from catalog records.
Hardware records contribute their transport name. Modeled records keep
the deterministic modeled fallback as the final candidate.