Enum rfmod::SpeakerMode[][src]

#[repr(C)]
pub enum SpeakerMode {
    Raw,
    Mono,
    Stereo,
    Quad,
    Surround,
    _5Point1,
    _7Point1,
    SRS5_1_Matrix,
    DOLBY5_1_Matrix,
    MYears,
    Max,
    ForceInt,
}
Expand description

These are speaker types defined for use with the Sys::set_speaker_mode or Sys::get_speaker_mode command.

Variants

Raw

There is no specific . Sound channels are mapped in order of input to output. Use Sys::set_software_format to specify speaker count. See remarks for more information.

Mono

The speakers are monaural.

Stereo

The speakers are stereo (DEFAULT).

Quad

4 speaker setup. This includes front left, front right, rear left, rear right.

Surround

5 speaker setup. This includes front left, front right, center, rear left, rear right.

_5Point1

5.1 speaker setup. This includes front left, front right, center, rear left, rear right and a subwoofer.

_7Point1

7.1 speaker setup. This includes front left, front right, center, rear left, rear right, side left, side right and a subwoofer.

SRS5_1_Matrix

Stereo compatible output, embedded with surround information. SRS 5.1/Prologic/Prologic2 decoders will split the signal into a 5.1 speaker set-up or SRS virtual surround will decode into a 2-speaker/headphone setup. See remarks about limitations.

DOLBY5_1_Matrix

Stereo compatible output, embedded with surround information. Dolby Pro Logic II decoders will split the signal into a 5.1 speaker set-up.

MYears

Stereo output, but data is encoded using personalized HRTF algorithms. See myears.net.au

Max

Maximum number of speaker modes supported.

ForceInt

Makes sure this enum is signed 32bit.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.