Struct fmod::core::SystemBuilder
source · pub struct SystemBuilder { /* private fields */ }Implementations§
source§impl SystemBuilder
impl SystemBuilder
sourcepub unsafe fn new() -> Result<Self>
pub unsafe fn new() -> Result<Self>
Creates a new SystemBuilder.
§Safety
This must be called first to create an FMOD System object before any other API calls (except for memory_initialize and debug_initialize).
Use this function to create 1 or multiple instances of FMOD System objects.
Calls to SystemBuilder::new and System::release are not thread-safe.
Do not call these functions simultaneously from multiple threads at once.
pub fn software_format( &mut self, sample_rate: c_int, speaker_mode: SpeakerMode, raw_speakers: c_int, ) -> Result<&mut Self>
pub fn software_channels( &mut self, software_channels: c_int, ) -> Result<&mut Self>
pub fn dsp_buffer_size( &mut self, buffer_size: c_uint, buffer_count: c_int, ) -> Result<&mut Self>
pub fn output(&mut self, kind: OutputType) -> Result<&mut Self>
pub fn output_by_plugin(&mut self, handle: c_uint) -> Result<&mut Self>
pub fn build(self, max_channels: c_int, flags: InitFlags) -> Result<System>
Trait Implementations§
impl Send for SystemBuilder
impl Sync for SystemBuilder
Auto Trait Implementations§
impl Freeze for SystemBuilder
impl RefUnwindSafe for SystemBuilder
impl Unpin for SystemBuilder
impl UnwindSafe for SystemBuilder
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