Skip to content

Commit a2ce359

Browse files
authored
fix: spelling (#126)
1 parent 91fa8d2 commit a2ce359

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

src/audio_unit/audio_format.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -337,31 +337,31 @@ bitflags! {
337337
///
338338
/// Original documentation [here](https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/CoreAudioDataTypesRef/#//apple_ref/doc/constant_group/AudioStreamBasicDescription_Flags).
339339
pub struct LinearPcmFlags: u32 {
340-
/// Synonmyn for the **IS_FLOAT** **StandardFlags**.
340+
/// Synonym for the **IS_FLOAT** **StandardFlags**.
341341
///
342342
/// **Available** in OS X v10.0 and later.
343343
const IS_FLOAT = 1;
344-
/// Synonmyn for the **IS_BIG_ENDIAN** **StandardFlags**.
344+
/// Synonym for the **IS_BIG_ENDIAN** **StandardFlags**.
345345
///
346346
/// **Available** in OS X v10.0 and later.
347347
const IS_BIG_ENDIAN = 2;
348-
/// Synonmyn for the **IS_SIGNED_INTEGER** **StandardFlags**.
348+
/// Synonym for the **IS_SIGNED_INTEGER** **StandardFlags**.
349349
///
350350
/// **Available** in OS X v10.0 and later.
351351
const IS_SIGNED_INTEGER = 4;
352-
/// Synonmyn for the **IS_PACKED** **StandardFlags**.
352+
/// Synonym for the **IS_PACKED** **StandardFlags**.
353353
///
354354
/// **Available** in OS X v10.0 and later.
355355
const IS_PACKED = 8;
356-
/// Synonmyn for the **IS_ALIGNED_HIGH** **StandardFlags**.
356+
/// Synonym for the **IS_ALIGNED_HIGH** **StandardFlags**.
357357
///
358358
/// **Available** in OS X v10.0 and later.
359359
const IS_ALIGNED_HIGH = 16;
360-
/// Synonmyn for the **IS_NON_INTERLEAVED** **StandardFlags**.
360+
/// Synonym for the **IS_NON_INTERLEAVED** **StandardFlags**.
361361
///
362362
/// **Available** in OS X v10.2 and later.
363363
const IS_NON_INTERLEAVED = 32;
364-
/// Synonmyn for the **IS_NON_MIXABLE** **StandardFlags**.
364+
/// Synonym for the **IS_NON_MIXABLE** **StandardFlags**.
365365
///
366366
/// **Available** in OS X v10.3 and later.
367367
const IS_NON_MIXABLE = 64;
@@ -443,7 +443,7 @@ pub enum Mpeg4ObjectId {
443443
/// Transform-domain weighted interleaved vector quantization; an audio codec optimised for
444444
/// audio coding at ultra low bit rates around 8kbit/s.
445445
TwinVQ = 7,
446-
/// Code Excited Linear Prdiction; a narrow-band/wide-band speech codec.
446+
/// Code Excited Linear Prediction; a narrow-band/wide-band speech codec.
447447
CELP = 8,
448448
/// Harmonic Vector Excitation Coding; a very-low bit-rate parametric speech codec.
449449
HVXC = 9,

src/audio_unit/macos_helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ pub fn get_supported_physical_stream_formats(
596596
Ok(allformats)
597597
}
598598

599-
/// Changing the sample rate is an asynchonous process.
599+
/// Changing the sample rate is an asynchronous process.
600600
/// A RateListener can be used to get notified when the rate is changed.
601601
pub struct RateListener {
602602
pub queue: Mutex<VecDeque<f64>>,

src/audio_unit/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl AudioUnit {
197197

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

352352
/// Sets the value for some property of the **AudioUnit**.
353353
///
354-
/// To clear an audio unit property value, set the data paramater with `None::<()>`.
354+
/// To clear an audio unit property value, set the data parameter with `None::<()>`.
355355
///
356356
/// Clearing properties only works for those properties that do not have a default value.
357357
///

src/audio_unit/render_callback.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub mod data {
5858

5959
/// Audio data wrappers specific to the `AudioUnit`'s `AudioFormat`.
6060
pub trait Data {
61-
/// Check whether or not the stream format matches this type of data.
61+
/// Check whether the stream format matches this type of data.
6262
fn does_stream_format_match(stream_format: &StreamFormat) -> bool;
6363
/// We must be able to construct Self from arguments given to the `input_proc`.
6464
/// # Safety

src/audio_unit/types.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Core Audio's various const audio unit types identifiers represented as typesafe enums.
22
//!
3-
//! Oirginal documentation [here](https://developer.apple.com/library/prerelease/mac/documentation/AudioUnit/Reference/AUComponentServicesReference/index.html#//apple_ref/doc/constant_group/Audio_Unit_Types).
3+
//! Original documentation [here](https://developer.apple.com/library/prerelease/mac/documentation/AudioUnit/Reference/AUComponentServicesReference/index.html#//apple_ref/doc/constant_group/Audio_Unit_Types).
44
55
/// Represents the different kinds of Audio Units that are available.
66
///
@@ -29,7 +29,7 @@ pub enum Type {
2929
/// A format converter unit can transform audio formats, such as performing sample rate
3030
/// conversion.
3131
///
32-
/// A format converter is also appropriate for dferred rendering and for effects such as
32+
/// A format converter is also appropriate for deferred rendering and for effects such as
3333
/// varispeed.
3434
///
3535
/// 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 {
437437
VoiceProcessingIO = 1987078511,
438438
/// Connects to device hardware for input, output, or simultaneous input and output.
439439
/// Use it for playback, recording, or low-latency simultaneous input and output where echo
440-
/// cancelation is not needed.
440+
/// cancellation is not needed.
441441
///
442442
/// See <https://developer.apple.com/library/content/documentation/MusicAudio/Conceptual/AudioUnitHostingGuide_iOS/UsingSpecificAudioUnits/UsingSpecificAudioUnits.html>
443443
/// **Available** in iOS.

0 commit comments

Comments
 (0)