diff --git a/src/audio_unit/audio_format.rs b/src/audio_unit/audio_format.rs index 952d706bd..b845ce50e 100644 --- a/src/audio_unit/audio_format.rs +++ b/src/audio_unit/audio_format.rs @@ -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; @@ -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, diff --git a/src/audio_unit/macos_helpers.rs b/src/audio_unit/macos_helpers.rs index bdffd7545..9fbf4278a 100644 --- a/src/audio_unit/macos_helpers.rs +++ b/src/audio_unit/macos_helpers.rs @@ -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>, diff --git a/src/audio_unit/mod.rs b/src/audio_unit/mod.rs index ea30fd4b5..4f813c7f9 100644 --- a/src/audio_unit/mod.rs +++ b/src/audio_unit/mod.rs @@ -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. /// @@ -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. /// diff --git a/src/audio_unit/render_callback.rs b/src/audio_unit/render_callback.rs index 57c2628bf..3d54c3358 100644 --- a/src/audio_unit/render_callback.rs +++ b/src/audio_unit/render_callback.rs @@ -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 diff --git a/src/audio_unit/types.rs b/src/audio_unit/types.rs index 6ced03701..3d43a9649 100644 --- a/src/audio_unit/types.rs +++ b/src/audio_unit/types.rs @@ -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. /// @@ -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 @@ -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 /// **Available** in iOS.