[][src]Enum agorartc_sys::agorartc::AUDIO_PROFILE_TYPE

pub enum AUDIO_PROFILE_TYPE {
    AUDIO_PROFILE_DEFAULT,
    AUDIO_PROFILE_SPEECH_STANDARD,
    AUDIO_PROFILE_MUSIC_STANDARD,
    AUDIO_PROFILE_MUSIC_STANDARD_STEREO,
    AUDIO_PROFILE_MUSIC_HIGH_QUALITY,
    AUDIO_PROFILE_MUSIC_HIGH_QUALITY_STEREO,
    AUDIO_PROFILE_IOT,
    AUDIO_PROFILE_NUM,
}

Audio profiles.

Sets the sample rate, bitrate, encoding mode, and the number of channels:

Variants

AUDIO_PROFILE_DEFAULT

0: Default audio profile:

  • For the interactive streaming profile: A sample rate of 48 KHz, music encoding, mono, and a bitrate of up to 64 Kbps.
  • For the COMMUNICATION profile:
    • Windows: A sample rate of 16 KHz, music encoding, mono, and a bitrate of up to 16 Kbps.
    • Android/macOS/iOS: A sample rate of 32 KHz, music encoding, mono, and a bitrate of up to 18 Kbps.
AUDIO_PROFILE_SPEECH_STANDARD

1: A sample rate of 32 KHz, audio encoding, mono, and a bitrate of up to 18 Kbps.

AUDIO_PROFILE_MUSIC_STANDARD

2: A sample rate of 48 KHz, music encoding, mono, and a bitrate of up to 64 Kbps.

AUDIO_PROFILE_MUSIC_STANDARD_STEREO

3: A sample rate of 48 KHz, music encoding, stereo, and a bitrate of up to 80 Kbps.

AUDIO_PROFILE_MUSIC_HIGH_QUALITY

4: A sample rate of 48 KHz, music encoding, mono, and a bitrate of up to 96 Kbps.

AUDIO_PROFILE_MUSIC_HIGH_QUALITY_STEREO

5: A sample rate of 48 KHz, music encoding, stereo, and a bitrate of up to 128 Kbps.

AUDIO_PROFILE_IOT

6: A sample rate of 16 KHz, audio encoding, mono, and Acoustic Echo Cancellation (AES) enabled.

AUDIO_PROFILE_NUM

Trait Implementations

impl FromPrimitive for AUDIO_PROFILE_TYPE[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.