Skip to content

Commit

Permalink
Fix doc URLs and do not expose graph.rs internals in public interface
Browse files Browse the repository at this point in the history
  • Loading branch information
orottier committed Dec 11, 2021
1 parent 027b480 commit af1fe81
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ use std::fmt;
use std::sync::atomic::{AtomicU32, AtomicU64, Ordering};

/// Render quantum size, the audio graph is rendered in blocks of RENDER_QUANTUM_SIZE samples
/// see. [https://webaudio.github.io/web-audio-api/#render-quantum]
/// see. <https://webaudio.github.io/web-audio-api/#render-quantum>
pub const RENDER_QUANTUM_SIZE: usize = 128;

/// Maximum number of channels for audio processing
Expand Down
5 changes: 4 additions & 1 deletion src/render/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
//! Primitives related to audio graph rendering

mod graph;
pub use graph::*;
pub(crate) use graph::*;

mod processor;
pub use processor::*;
mod render_quantum;
Expand Down
2 changes: 1 addition & 1 deletion src/render/render_quantum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl std::ops::Drop for AudioRenderQuantumChannel {

/// Internal fixed length audio asset of `RENDER_QUANTUM_SIZE` sample frames for
/// block rendering, basically a matrix of `channels * [f32; RENDER_QUANTUM_SIZE]`
/// cf. [https://webaudio.github.io/web-audio-api/#render-quantum]
/// cf. <https://webaudio.github.io/web-audio-api/#render-quantum>
///
/// An `AudioRenderQuantum` has copy-on-write semantics, so it is cheap to clone.
#[derive(Clone, Debug)]
Expand Down

0 comments on commit af1fe81

Please sign in to comment.