Enum OutputType

Source
#[repr(C)]
pub enum OutputType {
Show 30 variants AutoDetect = 0, Unknown = 1, NoSound = 2, WAVWriter = 3, NoSoundNRT = 4, WAVWriterNRT = 5, DSound = 6, WinMM = 7, WASAPI = 8, ASIO = 9, OSS = 10, ALSA = 11, ESD = 12, PulseAudio = 13, CoreAudio = 14, Xbox360 = 15, PSP = 16, PS3 = 17, NGP = 18, Wii = 19, _3DS = 20, AudioTrack = 21, OpenSL = 22, NACL = 23, WiiU = 24, ASound = 25, AudioOut = 26, XAudio = 27, Max = 28, ForceInt = 65_536,
}
Expand description

These output types are used with Sys::set_output / Sys::get_output, to choose which output method to use.

Variants§

§

AutoDetect = 0

Picks the best output mode for the platform. This is the default.

§

Unknown = 1

All - 3rd party plugin, unknown. This is for use with Sys::get_output only.

§

NoSound = 2

All - All calls in this mode succeed but make no sound.

§

WAVWriter = 3

All - Writes output to fmodoutput.wav by default. Use the ‘extradriverdata’ parameter in Sys::init, by simply passing the filename as a string, to set the wav filename.

§

NoSoundNRT = 4

All - Non-realtime version of FMOD_OUTPUTYPE_NOSOUND. User can drive mixer with Sys::update at whatever rate they want.

§

WAVWriterNRT = 5

All - Non-realtime version of FMOD_OUTPUTYPE_WAVWRITER. User can drive mixer with Sys::update at whatever rate they want.

§

DSound = 6

Win32/Win64 - DirectSound output. (Default on Windows XP and below)

§

WinMM = 7

Win32/Win64 - Windows Multimedia output.

§

WASAPI = 8

Win32 - Windows Audio Session API. (Default on Windows Vista and above)

§

ASIO = 9

Win32 - Low latency ASIO 2.0 driver.

§

OSS = 10

Linux/Linux64 - Open Sound System output. (Default on Linux, third preference)

§

ALSA = 11

Linux/Linux64 - Advanced Linux Sound Architecture output. (Default on Linux, second preference if available)

§

ESD = 12

Linux/Linux64 - Enlightment Sound Daemon output.

§

PulseAudio = 13

Linux/Linux64 - PulseAudio output. (Default on Linux, first preference if available)

§

CoreAudio = 14

Mac - Macintosh CoreAudio output. (Default on Mac)

§

Xbox360 = 15

Xbox 360 - Native Xbox360 output. (Default on Xbox 360)

§

PSP = 16

PSP - Native PSP output. (Default on PSP)

§

PS3 = 17

PS3 - Native PS3 output. (Default on PS3)

§

NGP = 18

NGP - Native NGP output. (Default on NGP)

§

Wii = 19

Wii - Native Wii output. (Default on Wii)

§

_3DS = 20

3DS - Native 3DS output (Default on 3DS)

§

AudioTrack = 21

Android - Java Audio Track output. (Default on Android 2.2 and below)

§

OpenSL = 22

Android - OpenSL ES output. (Default on Android 2.3 and above)

§

NACL = 23

Native Client - Native Client output. (Default on Native Client)

§

WiiU = 24

Wii U - Native Wii U output. (Default on Wii U)

§

ASound = 25

BlackBerry - Native BlackBerry asound output. (Default on BlackBerry)

§

AudioOut = 26

Orbis - Audio Out output. (Default on Orbis)

§

XAudio = 27

Durango - XAudio2 output.

§

Max = 28

Maximum number of output types supported.

§

ForceInt = 65_536

Makes sure this enum is signed 32bit.

Trait Implementations§

Source§

impl Clone for OutputType

Source§

fn clone(&self) -> OutputType

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OutputType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for OutputType

Source§

fn eq(&self, other: &OutputType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for OutputType

Source§

fn partial_cmp(&self, other: &OutputType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for OutputType

Source§

impl StructuralPartialEq for OutputType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.