Struct simplemad::MadFixed32 [] [src]

#[repr(C)]
pub struct MadFixed32 { /* fields omitted */ }

libmad's native fixed-point sample format

A 32-bit value comprised of a sign bit, three whole number bits and 28 fractional bits.

Methods

impl MadFixed32
[src]

[src]

Construct a new MadFixed32 from a value in libmad's fixed-point format

[src]

Get the raw fixed-point representation

[src]

Convert to i16

[src]

Convert to i32

[src]

Convert to f32

[src]

Convert to f64

Trait Implementations

impl Clone for MadFixed32
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for MadFixed32
[src]

impl Default for MadFixed32
[src]

[src]

Returns the "default value" for a type. Read more

impl Debug for MadFixed32
[src]

[src]

Formats the value using the given formatter. Read more

impl From<i16> for MadFixed32
[src]

[src]

Performs the conversion.

impl From<i32> for MadFixed32
[src]

[src]

Performs the conversion.

impl From<f32> for MadFixed32
[src]

[src]

Performs the conversion.

impl From<f64> for MadFixed32
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for MadFixed32

impl Sync for MadFixed32