diff options
author | François Laignel <fengalin@free.fr> | 2021-04-12 19:12:05 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2021-04-13 18:24:20 +0300 |
commit | 7d17f88941323013b7e2413aadaf53832a085195 (patch) | |
tree | 65a823b82489af25875062b96e37ef229506455e /audio/csound/src | |
parent | 06accc8d98cc2876bcacfc6f9e097af690b4e64f (diff) |
post fix-getters manual updates
Diffstat (limited to 'audio/csound/src')
-rw-r--r-- | audio/csound/src/filter/imp.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/audio/csound/src/filter/imp.rs b/audio/csound/src/filter/imp.rs index 00b384046..9ab2292ae 100644 --- a/audio/csound/src/filter/imp.rs +++ b/audio/csound/src/filter/imp.rs @@ -128,8 +128,8 @@ impl State { impl CsoundFilter { fn process(&self, csound: &mut Csound, idata: &[f64], odata: &mut [f64]) -> bool { - let spin = csound.spin().unwrap(); - let spout = csound.spout().unwrap(); + let spin = csound.get_spin().unwrap(); + let spout = csound.get_spout().unwrap(); let in_chunks = idata.chunks_exact(spin.len()); let out_chuncks = odata.chunks_exact_mut(spout.len()); @@ -190,8 +190,8 @@ impl CsoundFilter { return Ok(gst::FlowSuccess::Ok); } - let mut spin = csound.spin().unwrap(); - let spout = csound.spout().unwrap(); + let mut spin = csound.get_spin().unwrap(); + let spout = csound.get_spout().unwrap(); let out_bytes = (avail / state.in_info.channels() as usize) * state.out_info.channels() as usize; @@ -342,14 +342,14 @@ impl ObjectImpl for CsoundFilter { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::boolean( + glib::ParamSpec::new_boolean( "loop", "Loop", "loop over the score (can be changed in PLAYING or PAUSED state)", DEFAULT_LOOP, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, ), - glib::ParamSpec::string( + glib::ParamSpec::new_string( "location", "Location", "Location of the csd file to be used by csound. @@ -357,7 +357,7 @@ impl ObjectImpl for CsoundFilter { None, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, ), - glib::ParamSpec::string( + glib::ParamSpec::new_string( "csd-text", "CSD-text", "The content of a csd file passed as a String. @@ -365,7 +365,7 @@ impl ObjectImpl for CsoundFilter { None, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, ), - glib::ParamSpec::double( + glib::ParamSpec::new_double( "score-offset", "Score Offset", "Score offset in seconds to start the performance", @@ -547,7 +547,7 @@ impl BaseTransformImpl for CsoundFilter { if compiled { let csound = self.csound.lock().unwrap(); // Use the sample rate and channels configured in the csound score - let sr = csound.sample_rate() as i32; + let sr = csound.get_sample_rate() as i32; let ichannels = csound.input_channels() as i32; let ochannels = csound.output_channels() as i32; for s in new_caps.make_mut().iter_mut() { @@ -608,7 +608,7 @@ impl BaseTransformImpl for CsoundFilter { let rate = in_info.rate(); // Check if the negotiated caps are the right ones - if rate != out_info.rate() || rate != csound.sample_rate() as _ { + if rate != out_info.rate() || rate != csound.get_sample_rate() as _ { return Err(loggable_error!( CAT, "Failed to negotiate caps: invalid sample rate {}", @@ -628,7 +628,7 @@ impl BaseTransformImpl for CsoundFilter { )); } - let ksmps = csound.ksmps(); + let ksmps = csound.get_ksmps(); let adapter = gst_base::UniqueAdapter::new(); |