pub struct Bus { /* private fields */ }Implementations§
Source§impl Bus
impl Bus
pub fn from(pointer: *mut FMOD_STUDIO_BUS) -> Self
pub fn as_mut_ptr(&self) -> *mut FMOD_STUDIO_BUS
pub fn is_valid(&self) -> bool
pub fn get_id(&self) -> Result<Guid, Error>
pub fn get_path(&self) -> Result<String, Error>
pub fn get_volume(&self) -> Result<(f32, f32), Error>
pub fn set_volume(&self, volume: f32) -> Result<(), Error>
pub fn get_paused(&self) -> Result<bool, Error>
pub fn set_paused(&self, paused: bool) -> Result<(), Error>
pub fn get_mute(&self) -> Result<bool, Error>
pub fn set_mute(&self, mute: bool) -> Result<(), Error>
pub fn stop_all_events(&self, mode: StopMode) -> Result<(), Error>
pub fn get_port_index(&self) -> Result<FMOD_PORT_INDEX, Error>
pub fn set_port_index( &self, index: impl Into<FMOD_PORT_INDEX>, ) -> Result<(), Error>
pub fn lock_channel_group(&self) -> Result<(), Error>
pub fn unlock_channel_group(&self) -> Result<(), Error>
pub fn get_channel_group(&self) -> Result<ChannelGroup, Error>
pub fn get_cpu_usage(&self) -> Result<(u32, u32), Error>
pub fn get_memory_usage(&self) -> Result<MemoryUsage, Error>
Trait Implementations§
impl Copy for Bus
impl Send for Bus
impl Sync for Bus
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