pub struct ObsAudioEncoder { /* private fields */ }
Implementations§
Source§impl ObsAudioEncoder
impl ObsAudioEncoder
pub async fn new<T: Into<ObsString> + Sync + Send, K: Into<ObsString> + Sync + Send>( id: T, name: K, settings: Option<ObsData>, mixer_idx: usize, hotkey_data: Option<ObsData>, runtime: ObsRuntime, ) -> Result<Self, ObsError>
Sourcepub async fn set_audio_context(
&mut self,
handler: Sendable<*mut audio_output>,
) -> Result<(), ObsError>
pub async fn set_audio_context( &mut self, handler: Sendable<*mut audio_output>, ) -> Result<(), ObsError>
This is only needed once for global audio context
Trait Implementations§
Source§impl Debug for ObsAudioEncoder
impl Debug for ObsAudioEncoder
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