Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/cubeb-sys/src/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 789 B image not shown  

Quelle  internal.rs   Sprache: unbekannt

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

use std::{fmt, mem};
use std::os::raw::{c_char, c_uint};

#[repr(C)]
pub struct cubeb_layout_map {
    name: *const c_char,
    channels: c_uint,
    layout: cubeb_channel_layout,
}

impl Default for cubeb_layout_map {
    fn default() -> Self { unsafe { mem::zeroed() } }
}

// Explicit Debug impl to work around bug in ctest
impl fmt::Debug for cubeb_layout_map {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        f.debug_struct("cubeb_layout_map")
            .field("name", &self.name)
            .field("channels", &self.channels)
            .field("layout", &self.layout)
            .finish()
    }
}

[ Dauer der Verarbeitung: 0.20 Sekunden  (vorverarbeitet)  ]