pub struct AlsaInputSourceBuilder { /* private fields */ }Available on Linux only.
Expand description
A source for ALSA (Advanced Linux Sound Architecture) audio input.
This source captures audio from ALSA-compatible devices on Linux systems. It provides low-level access to audio hardware through the ALSA subsystem.
Implementations§
Source§impl AlsaInputSourceBuilder
impl AlsaInputSourceBuilder
Sourcepub fn set_device_id<T: Into<ObsString> + Sync + Send>(
self,
device_id: T,
) -> Self
pub fn set_device_id<T: Into<ObsString> + Sync + Send>( self, device_id: T, ) -> Self
ALSA device ID (e.g., “default”, “hw:0,0”, or custom PCM device)
Sourcepub fn set_custom_pcm<T: Into<ObsString> + Sync + Send>(
self,
custom_pcm: T,
) -> Self
pub fn set_custom_pcm<T: Into<ObsString> + Sync + Send>( self, custom_pcm: T, ) -> Self
Custom PCM device name (used when device_id is “custom”)
Source§impl AlsaInputSourceBuilder
impl AlsaInputSourceBuilder
Sourcepub fn set_custom_device(self, pcm_device: &str) -> Self
pub fn set_custom_device(self, pcm_device: &str) -> Self
Set a custom PCM device
Sourcepub fn set_alsa_device(self, device: &str) -> Self
pub fn set_alsa_device(self, device: &str) -> Self
Set a standard ALSA device
Trait Implementations§
Source§impl Debug for AlsaInputSourceBuilder
impl Debug for AlsaInputSourceBuilder
Source§impl ObsObjectBuilder for AlsaInputSourceBuilder
impl ObsObjectBuilder for AlsaInputSourceBuilder
fn new<T: Into<ObsString> + Send + Sync>( name: T, runtime: ObsRuntime, ) -> Result<Self, ObsError>
fn runtime(&self) -> &ObsRuntime
fn get_settings(&self) -> &ObsData
fn get_settings_updater(&mut self) -> &mut ObsDataUpdater
fn get_hotkeys(&self) -> &ObsData
fn get_hotkeys_updater(&mut self) -> &mut ObsDataUpdater
fn object_build(self) -> Result<ObjectInfo, ObsError>
Source§impl ObsSourceBuilder for AlsaInputSourceBuilder
impl ObsSourceBuilder for AlsaInputSourceBuilder
type T = ObsSourceRef
fn build(self) -> Result<Self::T, ObsError>where
Self: Sized,
§fn add_to_scene(
self,
scene: &mut ObsSceneRef,
) -> Result<ObsSceneItemRef<Self::T>, ObsError>where
Self: Sized,
fn add_to_scene(
self,
scene: &mut ObsSceneRef,
) -> Result<ObsSceneItemRef<Self::T>, ObsError>where
Self: Sized,
Both items are returned: the source and the scene item it was added as.
You can safely drop these items, they are stored within the scene if you don’t need them.
Auto Trait Implementations§
impl Freeze for AlsaInputSourceBuilder
impl !RefUnwindSafe for AlsaInputSourceBuilder
impl Send for AlsaInputSourceBuilder
impl Sync for AlsaInputSourceBuilder
impl Unpin for AlsaInputSourceBuilder
impl UnsafeUnpin for AlsaInputSourceBuilder
impl !UnwindSafe for AlsaInputSourceBuilder
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