Struct rfmod::Sys [−][src]
pub struct Sys { /* fields omitted */ }
Expand description
FMOD System Object
Implementations
pub fn create_sound(
&self,
music: &str,
options: Option<Mode>,
exinfo: Option<&mut CreateSoundexInfo>
) -> Result<Sound, Status>
pub fn create_sound(
&self,
music: &str,
options: Option<Mode>,
exinfo: Option<&mut CreateSoundexInfo>
) -> Result<Sound, Status>
If music is empty, null is sent
Create sound from a file contained in a byte slice.
Automatically adds the OPENMEMORY
mode flag and uses the length of the
slice as the exinfo length parameter. Ignores the CREATESTREAM
mode
flag since this would keep a pointer to the passed in buffer.
pub fn create_stream(
&self,
music: &str,
options: Option<Mode>,
exinfo: Option<&mut CreateSoundexInfo>
) -> Result<Sound, Status>
pub fn create_DSP_with_description(
&self,
description: &mut DspDescription
) -> Result<Dsp, Status>
pub fn set_software_format(
&self,
sample_rate: i32,
format: SoundFormat,
num_output_channels: i32,
max_input_channels: i32,
resample_method: DspResampler
) -> Status
pub fn get_plugin_handle(
&self,
plugin_type: PluginType,
index: i32
) -> Result<PluginHandle, Status>
pub fn get_plugin_info(
&self,
PluginHandle: PluginHandle,
name_len: usize
) -> Result<(String, PluginType, u32), RStatus>
pub fn set_3D_listener_attributes(
&self,
listener: i32,
pos: &Vector,
vel: &Vector,
forward: &Vector,
up: &Vector
) -> Status
Returns:
Ok(position, velocity, forward, up)
Returns:
Ok(x, y, is_active)
pub fn set_3D_settings(
&self,
doppler_scale: f32,
distance_factor: f32,
roll_off_scale: f32
) -> Status
Returns:
Ok(doppler_scale, distance_factor, roll_off_scale)
Returns:
Ok(file_buffer_size, distance_factor, time)
Returns:
Ok(dsp, stream, geometry, update, total)
Returns:
Ok(current_alloced, max_allocated, total)
Returns:
Ok(drive_name, scsi_name, device_name)
pub fn get_spectrum(
&self,
spectrum_size: usize,
channel_offset: Option<i32>,
window_type: Option<DspFftWindow>
) -> Result<Vec<f32>, Status>
Returns:
Ok(caps, min_frequency, max_frequency)
Returns:
Ok(listener, source, direct, reverb)
pub fn get_memory_info(
&self,
MemoryBits: MemoryBits,
EventMemoryBits: EventMemoryBits
) -> Result<(u32, MemoryUsageDetails), Status>
pub fn get_memory_info(
&self,
MemoryBits: MemoryBits,
EventMemoryBits: EventMemoryBits
) -> Result<(u32, MemoryUsageDetails), Status>
Returns:
Ok(memory_used, details)
pub fn set_file_system(
&self,
user_open: FileOpenCallback,
user_close: FileCloseCallback,
user_read: FileReadCallback,
user_seek: FileSeekCallback,
block_align: i32
) -> Status
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sys
impl UnwindSafe for Sys