pub struct SoundCoreParameter {
pub id: u32,
pub kind: u32,
pub size: Option<u32>,
pub min_value: SoundCoreParamValue,
pub max_value: SoundCoreParamValue,
pub step_size: SoundCoreParamValue,
pub attributes: u32,
pub description: String,
/* private fields */
}Expand description
Represents a parameter of a feature.
Fields§
§id: u32A numeric ID for this value
kind: u32The kind of the value
size: Option<u32>The size of the value, or None
min_value: SoundCoreParamValueThe minimum acceptable value, or None
max_value: SoundCoreParamValueThe maximum acceptable value, or None
step_size: SoundCoreParamValueThe distance between acceptable values, or None
attributes: u32Parameter attributes
description: StringA description of the parameter
Implementations§
Source§impl SoundCoreParameter
impl SoundCoreParameter
Sourcepub fn get(&self) -> Result<SoundCoreParamValue, Win32Error>
pub fn get(&self) -> Result<SoundCoreParamValue, Win32Error>
Gets the value of a parameter.
May return Err(Win32Error { code: E_ACCESSDENIED }) when getting a
parameter that is not currently applicable.
Sourcepub fn set(&mut self, value: &SoundCoreParamValue) -> Result<(), Win32Error>
pub fn set(&mut self, value: &SoundCoreParamValue) -> Result<(), Win32Error>
Sets the value of a parameter.
May return Err(Win32Error { code: E_ACCESSDENIED }) when setting a
parameter that is not currently applicable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SoundCoreParameter
impl RefUnwindSafe for SoundCoreParameter
impl !Send for SoundCoreParameter
impl !Sync for SoundCoreParameter
impl Unpin for SoundCoreParameter
impl UnwindSafe for SoundCoreParameter
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