pub struct ObsAudioEncoder { /* private fields */ }Expand description
Represents a audio encoder. If this struct is not referenced anywhere anymore, this Audio Encoder will get removed. Note: The output internally stores the ObsAudioEncoder, once it was added to the output
Implementations§
Source§impl ObsAudioEncoder
impl ObsAudioEncoder
Sourcepub fn new_from_info(
info: AudioEncoderInfo,
mixer_idx: usize,
runtime: ObsRuntime,
) -> Result<Arc<Self>, ObsError>
pub fn new_from_info( info: AudioEncoderInfo, mixer_idx: usize, runtime: ObsRuntime, ) -> Result<Arc<Self>, ObsError>
Info: the handler attribute is no longer needed and kept for compatibility. The handler parameter will be removed in a future release.
Trait Implementations§
Source§impl Clone for ObsAudioEncoder
impl Clone for ObsAudioEncoder
Source§fn clone(&self) -> ObsAudioEncoder
fn clone(&self) -> ObsAudioEncoder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObsAudioEncoder
impl Debug for ObsAudioEncoder
Source§impl ObsEncoderTrait for ObsAudioEncoder
impl ObsEncoderTrait for ObsAudioEncoder
Source§impl ObsObjectTrait<*mut obs_encoder> for ObsAudioEncoder
impl ObsObjectTrait<*mut obs_encoder> for ObsAudioEncoder
fn runtime(&self) -> &ObsRuntime
fn settings(&self) -> Result<ImmutableObsData, ObsError>
fn hotkey_data(&self) -> Result<ImmutableObsData, ObsError>
fn id(&self) -> ObsString
fn name(&self) -> ObsString
Source§fn update_settings(&self, settings: ObsData) -> Result<(), ObsError>
fn update_settings(&self, settings: ObsData) -> Result<(), ObsError>
Updates the settings of this output. Fails if active.
Source§fn as_ptr(&self) -> SmartPointerSendable<*mut obs_encoder>
fn as_ptr(&self) -> SmartPointerSendable<*mut obs_encoder>
Creates a new reference to the drop guard.
This is useful if you are using the underlying raw pointer, make sure to store it along the drop guard
Source§fn create_updater<'a, T: ObsObjectUpdater<'a, K, ToUpdate = Self> + Send + Sync>(
&'a mut self,
) -> Result<T, ObsError>
fn create_updater<'a, T: ObsObjectUpdater<'a, K, ToUpdate = Self> + Send + Sync>( &'a mut self, ) -> Result<T, ObsError>
Updates the object with the current settings.
For examples please take a look at the Github repository.
Auto Trait Implementations§
impl Freeze for ObsAudioEncoder
impl !RefUnwindSafe for ObsAudioEncoder
impl Send for ObsAudioEncoder
impl Sync for ObsAudioEncoder
impl Unpin for ObsAudioEncoder
impl !UnwindSafe for ObsAudioEncoder
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