pub struct Sound { /* private fields */ }Implementations§
source§impl Sound
impl Sound
pub fn from(pointer: *mut FMOD_SOUND) -> Self
pub fn as_mut_ptr(&self) -> *mut FMOD_SOUND
pub fn release(&self) -> Result<(), Error>
pub fn get_system_object(&self) -> Result<System, Error>
pub fn lock( &self, offset: u32, length: u32 ) -> Result<(*mut c_void, *mut c_void, u32, u32), Error>
pub fn unlock( &self, ptr_1: *mut c_void, ptr_2: *mut c_void, len_1: u32, len_2: u32 ) -> Result<(), Error>
pub fn set_defaults(&self, frequency: f32, priority: i32) -> Result<(), Error>
pub fn get_defaults(&self) -> Result<(f32, i32), Error>
pub fn set_3d_min_max_distance(&self, min: f32, max: f32) -> Result<(), Error>
pub fn get_3d_min_max_distance(&self) -> Result<(f32, f32), Error>
pub fn set_3d_cone_settings( &self, insideconeangle: f32, outsideconeangle: f32, outsidevolume: f32 ) -> Result<(), Error>
pub fn get_3d_cone_settings(&self) -> Result<(f32, f32, f32), Error>
pub fn set_3d_custom_rolloff(&self, points: Vec<Vector>) -> Result<(), Error>
pub fn get_3d_custom_rolloff(&self) -> Result<Vec<Vector>, Error>
pub fn get_sub_sound(&self, index: i32) -> Result<Sound, Error>
pub fn get_sub_sound_parent(&self) -> Result<Sound, Error>
pub fn get_name(&self, namelen: i32) -> Result<String, Error>
pub fn get_length( &self, lengthtype: impl Into<FMOD_TIMEUNIT> ) -> Result<u32, Error>
pub fn get_format(&self) -> Result<(SoundType, SoundFormat, i32, i32), Error>
pub fn get_num_sub_sounds(&self) -> Result<i32, Error>
pub fn get_tag(&self, name: &str, index: Option<i32>) -> Result<Tag, Error>
pub fn get_open_state(&self) -> Result<(OpenState, u32, bool, bool), Error>
pub fn read_data(&self, buffer: *mut c_void, length: u32) -> Result<u32, Error>
pub fn seek_data(&self, pcm: u32) -> Result<(), Error>
pub fn set_sound_group(&self, soundgroup: SoundGroup) -> Result<(), Error>
pub fn get_sound_group(&self) -> Result<SoundGroup, Error>
pub fn get_num_sync_points(&self) -> Result<i32, Error>
pub fn get_sync_point(&self, index: i32) -> Result<SyncPoint, Error>
pub fn get_sync_point_info( &self, point: SyncPoint, namelen: i32, offsettype: impl Into<FMOD_TIMEUNIT> ) -> Result<(String, u32), Error>
pub fn add_sync_point( &self, offset: u32, offsettype: impl Into<FMOD_TIMEUNIT>, name: Option<String> ) -> Result<SyncPoint, Error>
pub fn delete_sync_point(&self, point: SyncPoint) -> Result<(), Error>
pub fn set_mode(&self, mode: impl Into<FMOD_MODE>) -> Result<(), Error>
pub fn get_mode(&self) -> Result<FMOD_MODE, Error>
pub fn set_loop_count(&self, loopcount: i32) -> Result<(), Error>
pub fn get_loop_count(&self) -> Result<i32, Error>
pub fn set_loop_points( &self, loopstart: u32, loopstarttype: impl Into<FMOD_TIMEUNIT>, loopend: u32, loopendtype: impl Into<FMOD_TIMEUNIT> ) -> Result<(), Error>
pub fn get_loop_points( &self, loopstarttype: impl Into<FMOD_TIMEUNIT>, loopendtype: impl Into<FMOD_TIMEUNIT> ) -> Result<(u32, u32), Error>
pub fn get_music_num_channels(&self) -> Result<i32, Error>
pub fn set_music_channel_volume( &self, channel: i32, volume: f32 ) -> Result<(), Error>
pub fn get_music_channel_volume(&self, channel: i32) -> Result<f32, Error>
pub fn set_music_speed(&self, speed: f32) -> Result<(), Error>
pub fn get_music_speed(&self) -> Result<f32, Error>
pub fn set_user_data(&self, userdata: *mut c_void) -> Result<(), Error>
pub fn get_user_data(&self) -> Result<*mut c_void, Error>
Trait Implementations§
impl Copy for Sound
impl Send for Sound
impl Sync for Sound
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