pub struct Vca { /* private fields */ }
Available on crate feature
studio
only.Expand description
Represents a global mixer VCA.
Implementations§
Source§impl Vca
impl Vca
Sourcepub unsafe fn from_ffi(value: *mut FMOD_STUDIO_VCA) -> Self
pub unsafe fn from_ffi(value: *mut FMOD_STUDIO_VCA) -> Self
§Safety
value
must be a valid pointer either aquired from Self::as_ptr
or FMOD.
§Panics
Panics if value
is null.
Sourcepub fn as_ptr(self) -> *mut FMOD_STUDIO_VCA
pub fn as_ptr(self) -> *mut FMOD_STUDIO_VCA
Converts self
into its raw representation.
Source§impl Vca
impl Vca
Sourcepub fn set_volume(&self, volume: c_float) -> Result<()>
pub fn set_volume(&self, volume: c_float) -> Result<()>
Sets the volume level.
The VCA volume level is used to linearly modulate the levels of the buses and VCAs which it controls.
Sourcepub fn get_volume(&self) -> Result<(c_float, c_float)>
pub fn get_volume(&self) -> Result<(c_float, c_float)>
Retrieves the volume level.
The final combined volume returned in the second tuple field combines the user value set using Vca::set_volume
with the result of any automation or modulation applied to the VCA.
The final combined volume is calculated asynchronously when the Studio system updates.
Source§impl Vca
impl Vca
Sourcepub fn get_path(&self) -> Result<Utf8CString>
pub fn get_path(&self) -> Result<Utf8CString>
Retrieves the path.
The strings bank must be loaded prior to calling this function, otherwise FMOD_RESULT::FMOD_ERR_EVENT_NOTFOUND
is returned.
Trait Implementations§
impl Copy for Vca
impl Eq for Vca
impl Send for Vca
Available on non-crate feature
thread-unsafe
only.impl StructuralPartialEq for Vca
impl Sync for Vca
Available on non-crate feature
thread-unsafe
only.Auto Trait Implementations§
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