pub struct AudioClientProperties(/* private fields */);Expand description
A builder for constructing parameters that describe the properties of the client’s audio stream.
Wrapper for AudioClientProperties.
Implementations§
Source§impl AudioClientProperties
impl AudioClientProperties
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new AudioClientProperties struct with default values.
Sourcepub fn set_offload(self, is_offload: bool) -> Self
pub fn set_offload(self, is_offload: bool) -> Self
Set whether or not the audio stream is hardware-offloaded.
Sourcepub fn set_category<T>(self, category: T) -> Selfwhere
T: Into<AUDIO_STREAM_CATEGORY>,
pub fn set_category<T>(self, category: T) -> Selfwhere
T: Into<AUDIO_STREAM_CATEGORY>,
Specify the category of the audio stream.
See StreamCategory for possible categories or use the AUDIO_STREAM_CATEGORY constants directly.
Sourcepub fn set_option<T>(self, option: T) -> Selfwhere
T: Into<AUDCLNT_STREAMOPTIONS>,
pub fn set_option<T>(self, option: T) -> Selfwhere
T: Into<AUDCLNT_STREAMOPTIONS>,
Set an option for the audio stream.
See StreamOption for possible options or use the AUDCLNT_STREAMOPTIONS constants directly.
Trait Implementations§
Source§impl Clone for AudioClientProperties
impl Clone for AudioClientProperties
impl Copy for AudioClientProperties
Source§impl Debug for AudioClientProperties
impl Debug for AudioClientProperties
Auto Trait Implementations§
impl Freeze for AudioClientProperties
impl RefUnwindSafe for AudioClientProperties
impl Send for AudioClientProperties
impl Sync for AudioClientProperties
impl Unpin for AudioClientProperties
impl UnsafeUnpin for AudioClientProperties
impl UnwindSafe for AudioClientProperties
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