Browse Source

cargo fmt

pull/83/head
Andrea Ciliberti 2 years ago
parent
commit
486a8cd5aa
  1. 4
      ctru-rs/src/services/mod.rs
  2. 6
      ctru-rs/src/services/ndsp/mod.rs

4
ctru-rs/src/services/mod.rs

@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
//! System services used to handle system-specific functionalities.
//!
//!
//! Most of the 3DS console's functionalities (when writing homebrew) are locked behind services,
//! which need to be initialized before accessing any particular feature.
//!
//!
//! Some include: button input, audio playback, graphics rendering, built-in cameras, etc.
pub mod apt;

6
ctru-rs/src/services/ndsp/mod.rs

@ -53,7 +53,7 @@ pub struct Channel<'ndsp> { @@ -53,7 +53,7 @@ pub struct Channel<'ndsp> {
static NDSP_ACTIVE: Mutex<usize> = Mutex::new(0);
/// Handler of the DSP service and DSP processor.
///
///
/// This is the main struct to handle audio playback using the 3DS' speakers and headphone jack.
/// Only one "instance" of this struct can exist at a time.
pub struct Ndsp {
@ -63,9 +63,9 @@ pub struct Ndsp { @@ -63,9 +63,9 @@ pub struct Ndsp {
impl Ndsp {
/// Initialize the DSP service and audio units.
///
///
/// # Errors
///
///
/// This function will return an error if an instance of the `Ndsp` struct already exists
/// or if there are any issues during initialization.
pub fn init() -> crate::Result<Self> {

Loading…
Cancel
Save