Skip to content

Commit

Permalink
fix: spelling (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
xenide authored Sep 8, 2024
1 parent 91fa8d2 commit a2ce359
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions src/audio_unit/audio_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,31 +337,31 @@ bitflags! {
///
/// Original documentation [here](https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/CoreAudioDataTypesRef/#//apple_ref/doc/constant_group/AudioStreamBasicDescription_Flags).
pub struct LinearPcmFlags: u32 {
/// Synonmyn for the **IS_FLOAT** **StandardFlags**.
/// Synonym for the **IS_FLOAT** **StandardFlags**.
///
/// **Available** in OS X v10.0 and later.
const IS_FLOAT = 1;
/// Synonmyn for the **IS_BIG_ENDIAN** **StandardFlags**.
/// Synonym for the **IS_BIG_ENDIAN** **StandardFlags**.
///
/// **Available** in OS X v10.0 and later.
const IS_BIG_ENDIAN = 2;
/// Synonmyn for the **IS_SIGNED_INTEGER** **StandardFlags**.
/// Synonym for the **IS_SIGNED_INTEGER** **StandardFlags**.
///
/// **Available** in OS X v10.0 and later.
const IS_SIGNED_INTEGER = 4;
/// Synonmyn for the **IS_PACKED** **StandardFlags**.
/// Synonym for the **IS_PACKED** **StandardFlags**.
///
/// **Available** in OS X v10.0 and later.
const IS_PACKED = 8;
/// Synonmyn for the **IS_ALIGNED_HIGH** **StandardFlags**.
/// Synonym for the **IS_ALIGNED_HIGH** **StandardFlags**.
///
/// **Available** in OS X v10.0 and later.
const IS_ALIGNED_HIGH = 16;
/// Synonmyn for the **IS_NON_INTERLEAVED** **StandardFlags**.
/// Synonym for the **IS_NON_INTERLEAVED** **StandardFlags**.
///
/// **Available** in OS X v10.2 and later.
const IS_NON_INTERLEAVED = 32;
/// Synonmyn for the **IS_NON_MIXABLE** **StandardFlags**.
/// Synonym for the **IS_NON_MIXABLE** **StandardFlags**.
///
/// **Available** in OS X v10.3 and later.
const IS_NON_MIXABLE = 64;
Expand Down Expand Up @@ -443,7 +443,7 @@ pub enum Mpeg4ObjectId {
/// Transform-domain weighted interleaved vector quantization; an audio codec optimised for
/// audio coding at ultra low bit rates around 8kbit/s.
TwinVQ = 7,
/// Code Excited Linear Prdiction; a narrow-band/wide-band speech codec.
/// Code Excited Linear Prediction; a narrow-band/wide-band speech codec.
CELP = 8,
/// Harmonic Vector Excitation Coding; a very-low bit-rate parametric speech codec.
HVXC = 9,
Expand Down
2 changes: 1 addition & 1 deletion src/audio_unit/macos_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ pub fn get_supported_physical_stream_formats(
Ok(allformats)
}

/// Changing the sample rate is an asynchonous process.
/// Changing the sample rate is an asynchronous process.
/// A RateListener can be used to get notified when the rate is changed.
pub struct RateListener {
pub queue: Mutex<VecDeque<f64>>,
Expand Down
4 changes: 2 additions & 2 deletions src/audio_unit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl AudioUnit {

/// Sets the value for some property of the **AudioUnit**.
///
/// To clear an audio unit property value, set the data paramater with `None::<()>`.
/// To clear an audio unit property value, set the data parameter with `None::<()>`.
///
/// Clearing properties only works for those properties that do not have a default value.
///
Expand Down Expand Up @@ -351,7 +351,7 @@ impl Drop for AudioUnit {

/// Sets the value for some property of the **AudioUnit**.
///
/// To clear an audio unit property value, set the data paramater with `None::<()>`.
/// To clear an audio unit property value, set the data parameter with `None::<()>`.
///
/// Clearing properties only works for those properties that do not have a default value.
///
Expand Down
2 changes: 1 addition & 1 deletion src/audio_unit/render_callback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub mod data {

/// Audio data wrappers specific to the `AudioUnit`'s `AudioFormat`.
pub trait Data {
/// Check whether or not the stream format matches this type of data.
/// Check whether the stream format matches this type of data.
fn does_stream_format_match(stream_format: &StreamFormat) -> bool;
/// We must be able to construct Self from arguments given to the `input_proc`.
/// # Safety
Expand Down
6 changes: 3 additions & 3 deletions src/audio_unit/types.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Core Audio's various const audio unit types identifiers represented as typesafe enums.
//!
//! Oirginal documentation [here](https://developer.apple.com/library/prerelease/mac/documentation/AudioUnit/Reference/AUComponentServicesReference/index.html#//apple_ref/doc/constant_group/Audio_Unit_Types).
//! Original documentation [here](https://developer.apple.com/library/prerelease/mac/documentation/AudioUnit/Reference/AUComponentServicesReference/index.html#//apple_ref/doc/constant_group/Audio_Unit_Types).

/// Represents the different kinds of Audio Units that are available.
///
Expand Down Expand Up @@ -29,7 +29,7 @@ pub enum Type {
/// A format converter unit can transform audio formats, such as performing sample rate
/// conversion.
///
/// A format converter is also appropriate for dferred rendering and for effects such as
/// A format converter is also appropriate for deferred rendering and for effects such as
/// varispeed.
///
/// A format converter unit can ask for as much or as little audio input as it needs to produce
Expand Down Expand Up @@ -437,7 +437,7 @@ pub enum IOType {
VoiceProcessingIO = 1987078511,
/// Connects to device hardware for input, output, or simultaneous input and output.
/// Use it for playback, recording, or low-latency simultaneous input and output where echo
/// cancelation is not needed.
/// cancellation is not needed.
///
/// See <https://developer.apple.com/library/content/documentation/MusicAudio/Conceptual/AudioUnitHostingGuide_iOS/UsingSpecificAudioUnits/UsingSpecificAudioUnits.html>
/// **Available** in iOS.
Expand Down

0 comments on commit a2ce359

Please sign in to comment.