diff options
author | Guillaume Desmottes <guillaume.desmottes@onestream.live> | 2023-04-10 14:34:46 +0300 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@onestream.live> | 2023-04-10 14:35:32 +0300 |
commit | 403004a85e7bdd7567d3381d592ef00e5914b6ed (patch) | |
tree | 93caa4153b50799f4e784beaad9b075330ae4648 /audio/csound | |
parent | a45581987189b45bc9d9d55750d0181806d6fe1b (diff) |
fix typos
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1170>
Diffstat (limited to 'audio/csound')
-rw-r--r-- | audio/csound/examples/effect_example.rs | 2 | ||||
-rw-r--r-- | audio/csound/src/filter/imp.rs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/audio/csound/examples/effect_example.rs b/audio/csound/examples/effect_example.rs index 7ad38282..39fb1af7 100644 --- a/audio/csound/examples/effect_example.rs +++ b/audio/csound/examples/effect_example.rs @@ -19,7 +19,7 @@ const AUDIO_SINK: &str = "audioconvert ! autoaudiosink"; // from the global accumulator(gasig), then reads these buffers at a fixed delay time, creating the adelL, adelM and adelR buffers, // also, It multiplies the audio samples in the right channel by 0.5 * kdel, being kdel a line of values starting at 0.5 at increments of 0.001. // Finally, those buffers are mixed with the accumulator, and an audio envelop is applied(aseg) to them. -// The result is similar to an audio echo in which the buffered samples are read at different delay times and also modified in frecuency(right channel), +// The result is similar to an audio echo in which the buffered samples are read at different delay times and also modified in frequency(right channel), // this creates an space effect using just one channel audio input. const CSD: &str = " <CsoundSynthesizer> diff --git a/audio/csound/src/filter/imp.rs b/audio/csound/src/filter/imp.rs index 6b7a181d..ed2a3426 100644 --- a/audio/csound/src/filter/imp.rs +++ b/audio/csound/src/filter/imp.rs @@ -127,9 +127,9 @@ impl CsoundFilter { let spout = csound.get_spout().unwrap(); let in_chunks = idata.chunks_exact(spin.len()); - let out_chuncks = odata.chunks_exact_mut(spout.len()); + let out_chunks = odata.chunks_exact_mut(spout.len()); let mut end_score = false; - for (ichunk, ochunk) in in_chunks.zip(out_chuncks) { + for (ichunk, ochunk) in in_chunks.zip(out_chunks) { spin.copy_from_slice(ichunk); end_score = csound.perform_ksmps(); spout.copy_to_slice(ochunk); @@ -254,7 +254,7 @@ impl CsoundFilter { ); // Get the required amount of bytes to be read from - // the adapter to fill an ouput buffer of size output_size + // the adapter to fill an output buffer of size output_size let bytes_to_read = state.bytes_to_read(output_size); let indata = state @@ -554,7 +554,7 @@ impl BaseTransformImpl for CsoundFilter { // Flush previous state if self.state.lock().unwrap().is_some() { self.drain() - .map_err(|e| loggable_error!(CAT, "Error flusing previous state data {:?}", e))?; + .map_err(|e| loggable_error!(CAT, "Error flushing previous state data {:?}", e))?; } let in_info = gst_audio::AudioInfo::from_caps(incaps) |