Struct rrise::AkChannelConfig
source · [−]#[repr(C)]#[repr(align(4))]pub struct AkChannelConfig {
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>,
}Expand description
Defines a channel configuration. Examples: \code AkChannelConfig cfg;
// Create a stereo configuration. cfg.SetStandard(AK_SPEAKER_SETUP_STEREO);
// Create a 7.1.4 configuration (7.1 plus 4 height channels). cfg.SetStandard(AK_SPEAKER_SETUP_AURO_11POINT1_740); // or cfg.SetStandard(AK_SPEAKER_SETUP_DOLBY_7_1_4);
// Create a 3rd order ambisonic configuration. cfg.SetAmbisonic(16); // pass in the number of spherical harmonics, (N+1)^2, where N is the ambisonics order.
// Invalidate (usually means “As Parent”) cfg.Clear(); \endcode
Fields
_bitfield_align_1: [u32; 0]_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>Implementations
sourceimpl AkChannelConfig
impl AkChannelConfig
pub fn uNumChannels(&self) -> AkUInt32
pub fn set_uNumChannels(&mut self, val: AkUInt32)
pub fn eConfigType(&self) -> AkUInt32
pub fn set_eConfigType(&mut self, val: AkUInt32)
pub fn uChannelMask(&self) -> AkUInt32
pub fn set_uChannelMask(&mut self, val: AkUInt32)
pub fn new_bitfield_1(
uNumChannels: AkUInt32,
eConfigType: AkUInt32,
uChannelMask: AkUInt32
) -> __BindgenBitfieldUnit<[u8; 4]>
Trait Implementations
sourceimpl Clone for AkChannelConfig
impl Clone for AkChannelConfig
sourcefn clone(&self) -> AkChannelConfig
fn clone(&self) -> AkChannelConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AkChannelConfig
impl Debug for AkChannelConfig
impl Copy for AkChannelConfig
Auto Trait Implementations
impl RefUnwindSafe for AkChannelConfig
impl Send for AkChannelConfig
impl Sync for AkChannelConfig
impl Unpin for AkChannelConfig
impl UnwindSafe for AkChannelConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more