Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/cubeb-core/src/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  format.rs

  Sprache: Rust
 

// Copyright © 2017-2018 Mozilla Foundation
//
// This program is made available under an ISC-style license.  See the
// accompanying file LICENSE for details.

use ffi;

#[derive(PartialEq, Eq, Clone, Debug, Copy)]
pub enum SampleFormat {
    S16LE,
    S16BE,
    Float32LE,
    Float32BE,
    // Maps to the platform native endian
    S16NE,
    Float32NE,
}

impl From<ffi::cubeb_sample_format> for SampleFormat {
    fn from(x: ffi::cubeb_sample_format) -> SampleFormat {
        match x {
            ffi::CUBEB_SAMPLE_S16LE => SampleFormat::S16LE,
            ffi::CUBEB_SAMPLE_S16BE => SampleFormat::S16BE,
            ffi::CUBEB_SAMPLE_FLOAT32LE => SampleFormat::Float32LE,
            ffi::CUBEB_SAMPLE_FLOAT32BE => SampleFormat::Float32BE,
            // TODO: Implement TryFrom
            _ => SampleFormat::S16NE,
        }
    }
}

impl From<SampleFormat> for ffi::cubeb_sample_format {
    fn from(x: SampleFormat) -> Self {
        use SampleFormat::*;
        match x {
            S16LE => ffi::CUBEB_SAMPLE_S16LE,
            S16BE => ffi::CUBEB_SAMPLE_S16BE,
            Float32LE => ffi::CUBEB_SAMPLE_FLOAT32LE,
            Float32BE => ffi::CUBEB_SAMPLE_FLOAT32BE,
            S16NE => ffi::CUBEB_SAMPLE_S16NE,
            Float32NE => ffi::CUBEB_SAMPLE_FLOAT32NE,
        }
    }
}

Messung V0.5 in Prozent
C=84 H=96 G=90

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.