Skip to content

Commit

Permalink
Merge pull request #372 from uklotzde/typos
Browse files Browse the repository at this point in the history
Fix codespell typos
  • Loading branch information
orottier authored Oct 15, 2023
2 parents 74b58e0 + 32dca86 commit e897a89
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ default_stages:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-case-conflict
- id: check-json
Expand All @@ -28,26 +28,26 @@ repos:
stages:
- commit-msg
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.8.1
rev: v0.10.0
hooks:
- id: markdownlint-cli2
exclude: ^LICENSE\.md$
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.5
rev: v0.9.0.6
hooks:
- id: shellcheck
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
rev: v2.2.6
hooks:
- id: codespell
args: [--ignore-words=.codespellignore]
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.23.3
rev: 0.27.0
hooks:
- id: check-github-actions
- id: check-github-workflows
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0
rev: v3.0.3
hooks:
- id: prettier
types_or:
Expand Down
2 changes: 1 addition & 1 deletion src/capacity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub(crate) struct AudioRenderCapacityLoad {

/// Options for constructing an `AudioRenderCapacity`
pub struct AudioRenderCapacityOptions {
/// An update interval (in seconds) for dispaching [`AudioRenderCapacityEvent`]s
/// An update interval (in seconds) for dispatching [`AudioRenderCapacityEvent`]s
pub update_interval: f64,
}

Expand Down
2 changes: 1 addition & 1 deletion src/context/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub trait BaseAudioContext {
///
/// In addition to the official spec, the input parameter can be any byte stream (not just an
/// array). This means you can decode audio data from a file, network stream, or in memory
/// buffer, and any other [`std::io::Read`] implementor. The data if buffered internally so you
/// buffer, and any other [`std::io::Read`] implementer. The data if buffered internally so you
/// should not wrap the source in a `BufReader`.
///
/// This function operates synchronously, which may be undesirable on the control thread. The
Expand Down
4 changes: 2 additions & 2 deletions src/decoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use symphonia::core::formats::{FormatOptions, FormatReader};
use symphonia::core::meta::MetadataOptions;
use symphonia::core::probe::Hint;

/// Wrapper for `Read` implementors to be used in Symphonia decoding
/// Wrapper for `Read` implementers to be used in Symphonia decoding
///
/// Symphonia requires its input to impl `Seek` - but allows non-seekable sources. Hence we
/// implement Seek but return false for `is_seekable()`.
Expand Down Expand Up @@ -58,7 +58,7 @@ pub(crate) struct MediaDecoder {
}

impl MediaDecoder {
/// Try to construct a new instance from a `Read` implementor
/// Try to construct a new instance from a `Read` implementer
///
/// # Errors
///
Expand Down
2 changes: 1 addition & 1 deletion src/node/delay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ impl AudioProcessor for DelayWriter {
self.latest_frame_written.set(scope.current_frame);

// The writer end does not produce output,
// clear the buffer so that it can be re-used
// clear the buffer so that it can be reused
output.make_silent();

// let the node be decommisioned if it has no input left
Expand Down
2 changes: 1 addition & 1 deletion src/node/oscillator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ impl OscillatorNode {
})
}

/// A-rate [`AudioParam`] that defines the fondamental frequency of the
/// A-rate [`AudioParam`] that defines the fundamental frequency of the
/// oscillator, expressed in Hz
///
/// The final frequency is calculated as follow: frequency * 2^(detune/1200)
Expand Down
4 changes: 2 additions & 2 deletions src/periodic_wave.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ mod tests {

for i in 0..TABLE_LENGTH_USIZE {
let mut sample = 0.;
// fondamental frequency
// fundamental frequency
sample += 0.5 * (1. * i as f32 / TABLE_LENGTH_F32 * 2. * PI).sin();
// 1rst partial
sample += 0.5 * (2. * i as f32 / TABLE_LENGTH_F32 * 2. * PI).sin();
Expand Down Expand Up @@ -334,7 +334,7 @@ mod tests {

for i in 0..TABLE_LENGTH_USIZE {
let mut sample = 0.;
// fondamental frequency
// fundamental frequency
sample += 0.5 * (1. * i as f32 / TABLE_LENGTH_F32 * 2. * PI).sin();
// 1rst partial
sample += 0.5 * (2. * i as f32 / TABLE_LENGTH_F32 * 2. * PI).sin();
Expand Down
2 changes: 1 addition & 1 deletion src/render/quantum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl Alloc {
impl AllocInner {
fn allocate(&self) -> Rc<[f32; RENDER_QUANTUM_SIZE]> {
if let Some(rc) = self.pool.borrow_mut().pop() {
// re-use from pool
// reuse from pool
rc
} else {
// allocate
Expand Down

0 comments on commit e897a89

Please sign in to comment.