#[repr(u32)]pub enum PortType {
Music = 0,
CopyrightMusic = 1,
Voice = 2,
Controller = 3,
Personal = 4,
Vibration = 5,
AUX = 6,
Passthrough = 7,
VrVibration = 8,
}
Expand description
Port types available for routing audio.
Variants§
Music = 0
Background music, pass FMOD_PORT_INDEX_NONE
as port index.
CopyrightMusic = 1
Copyright background music, pass FMOD_PORT_INDEX_NONE
as port index.
Voice = 2
Voice chat, pass platform specific user ID of desired user as port index.
Controller = 3
Controller speaker, pass platform specific user ID of desired user as port index.
Personal = 4
Personal audio device, pass platform specific user ID of desired user as port index.
Vibration = 5
Controller vibration, pass platform specific user ID of desired user as port index.
AUX = 6
Auxiliary output port, pass FMOD_PORT_INDEX_NONE
as port index.
Passthrough = 7
Available on
fmod_eq_2_3
only.Passthrough output port, pass FMOD_PORT_INDEX_NONE
as port index.
VrVibration = 8
Available on
fmod_eq_2_3
only.VR Controller vibration, pass platform specific user ID of desired user as port index.
Trait Implementations§
Source§impl TryFromPrimitive for PortType
impl TryFromPrimitive for PortType
Source§impl UnsafeFromPrimitive for PortType
impl UnsafeFromPrimitive for PortType
type Primitive = u32
Source§unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
Transmutes into an enum from its primitive. Read more
Source§unsafe fn from_unchecked(number: Self::Primitive) -> Self
unsafe fn from_unchecked(number: Self::Primitive) -> Self
👎Deprecated since 0.6.0: Prefer to use
unchecked_transmute_from
, from_unchecked
will be removed in a future release.Transmutes into an enum from its primitive. Read more
impl Copy for PortType
impl Eq for PortType
impl StructuralPartialEq for PortType
Auto Trait Implementations§
impl Freeze for PortType
impl RefUnwindSafe for PortType
impl Send for PortType
impl Sync for PortType
impl Unpin for PortType
impl UnwindSafe for PortType
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