diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-01-31 15:44:45 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2021-01-31 16:43:00 +0300 |
commit | b649e9b07674f563c8b4b44fde1076606b93e996 (patch) | |
tree | 703c3feb9988a2e53df3583feb6b47e3633902ee /audio | |
parent | 1a826caf75ac9e0e959d7fadde3c24a99f57a655 (diff) |
Use gst::PARAM_FLAG_MUTABLE_PLAYING and others consistently everywhere
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/139
Diffstat (limited to 'audio')
-rw-r--r-- | audio/audiofx/src/audioecho/imp.rs | 8 | ||||
-rw-r--r-- | audio/audiofx/src/audioloudnorm/imp.rs | 8 | ||||
-rw-r--r-- | audio/csound/src/filter/imp.rs | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/audio/audiofx/src/audioecho/imp.rs b/audio/audiofx/src/audioecho/imp.rs index 19fa2deca..8abf4de7b 100644 --- a/audio/audiofx/src/audioecho/imp.rs +++ b/audio/audiofx/src/audioecho/imp.rs @@ -112,7 +112,7 @@ impl ObjectImpl for AudioEcho { "Maximum delay of the echo in nanoseconds (can't be changed in PLAYING or PAUSED state)", 0, u64::MAX, DEFAULT_MAX_DELAY, - glib::ParamFlags::READWRITE, + glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, ), glib::ParamSpec::uint64( "delay", @@ -121,7 +121,7 @@ impl ObjectImpl for AudioEcho { 0, u64::MAX, DEFAULT_DELAY, - glib::ParamFlags::READWRITE, + glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, ), glib::ParamSpec::double( "intensity", @@ -130,7 +130,7 @@ impl ObjectImpl for AudioEcho { 0.0, 1.0, DEFAULT_INTENSITY, - glib::ParamFlags::READWRITE, + glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, ), glib::ParamSpec::double( "feedback", @@ -139,7 +139,7 @@ impl ObjectImpl for AudioEcho { 0.0, 1.0, DEFAULT_FEEDBACK, - glib::ParamFlags::READWRITE, + glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, ), ] }); diff --git a/audio/audiofx/src/audioloudnorm/imp.rs b/audio/audiofx/src/audioloudnorm/imp.rs index 102894e55..555301641 100644 --- a/audio/audiofx/src/audioloudnorm/imp.rs +++ b/audio/audiofx/src/audioloudnorm/imp.rs @@ -1763,7 +1763,7 @@ impl ObjectImpl for AudioLoudNorm { -70.0, -5.0, DEFAULT_LOUDNESS_TARGET, - glib::ParamFlags::READWRITE, + glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, ), glib::ParamSpec::double( "loudness-range-target", @@ -1772,7 +1772,7 @@ impl ObjectImpl for AudioLoudNorm { 1.0, 20.0, DEFAULT_LOUDNESS_RANGE_TARGET, - glib::ParamFlags::READWRITE, + glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, ), glib::ParamSpec::double( "max-true-peak", @@ -1781,7 +1781,7 @@ impl ObjectImpl for AudioLoudNorm { -9.0, 0.0, DEFAULT_MAX_TRUE_PEAK, - glib::ParamFlags::READWRITE, + glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, ), glib::ParamSpec::double( "offset", @@ -1790,7 +1790,7 @@ impl ObjectImpl for AudioLoudNorm { -99.0, 99.0, DEFAULT_OFFSET, - glib::ParamFlags::READWRITE, + glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, ), ] }); diff --git a/audio/csound/src/filter/imp.rs b/audio/csound/src/filter/imp.rs index 9967587e4..3a5c492a3 100644 --- a/audio/csound/src/filter/imp.rs +++ b/audio/csound/src/filter/imp.rs @@ -352,7 +352,7 @@ impl ObjectImpl for CsoundFilter { "Loop", "loop over the score (can be changed in PLAYING or PAUSED state)", DEFAULT_LOOP, - glib::ParamFlags::READWRITE, + glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, ), glib::ParamSpec::string( "location", @@ -360,7 +360,7 @@ impl ObjectImpl for CsoundFilter { "Location of the csd file to be used by csound. Use either location or CSD-text but not both at the same time, if so and error would be triggered", None, - glib::ParamFlags::READWRITE, + glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, ), glib::ParamSpec::string( "csd-text", @@ -368,7 +368,7 @@ impl ObjectImpl for CsoundFilter { "The content of a csd file passed as a String. Use either location or csd-text but not both at the same time, if so and error would be triggered", None, - glib::ParamFlags::READWRITE, + glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, ), glib::ParamSpec::double( "score-offset", @@ -377,7 +377,7 @@ impl ObjectImpl for CsoundFilter { 0.0, f64::MAX, SCORE_OFFSET_DEFAULT, - glib::ParamFlags::READWRITE, + glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, ), ] }); |