pub struct AdvancedSettings {
pub command_queue_size: c_uint,
pub handle_initial_size: c_uint,
pub studio_update_period: c_int,
pub idle_sample_data_pool_size: c_int,
pub streaming_schedule_delay: c_uint,
pub encryption_key: Option<Utf8CString>,
}
studio
only.Expand description
Settings for advanced features like configuring memory and cpu usage.
Fields§
§command_queue_size: c_uint
Command queue size for studio async processing.
handle_initial_size: c_uint
Initial size to allocate for handles. Memory for handles will grow as needed in pages.
studio_update_period: c_int
Update period of Studio when in async mode, in milliseconds. Will be quantized to the nearest multiple of mixer duration.
idle_sample_data_pool_size: c_int
Size in bytes of sample data to retain in memory when no longer used, to avoid repeated disk I/O. Use -1 to disable.
streaming_schedule_delay: c_uint
Specify the schedule delay for streams, in samples. Lower values can reduce latency when scheduling events containing streams but may cause scheduling issues if too small.
encryption_key: Option<Utf8CString>
Specify the key for loading sounds from encrypted banks.
Implementations§
Source§impl AdvancedSettings
impl AdvancedSettings
Sourcepub unsafe fn from_ffi(value: FMOD_STUDIO_ADVANCEDSETTINGS) -> Self
pub unsafe fn from_ffi(value: FMOD_STUDIO_ADVANCEDSETTINGS) -> Self
Create a safe AdvancedSettings
struct from the FFI equivalent.
§Safety
The encryption key from FMOD_STUDIO_ADVANCEDSETTINGS
must be a null-terminated and must be valid for reads of bytes up to and including the nul terminator.
See Utf8CStr::from_ptr_unchecked
for more information.
Trait Implementations§
Source§impl Clone for AdvancedSettings
impl Clone for AdvancedSettings
Source§fn clone(&self) -> AdvancedSettings
fn clone(&self) -> AdvancedSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more