diff options
author | Guillaume Desmottes <guillaume.desmottes@onestream.live> | 2023-12-04 17:54:00 +0300 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@onestream.live> | 2023-12-04 17:58:21 +0300 |
commit | 6dfd1c1496ff710a806e4b0a5f30a83ab6b7fe40 (patch) | |
tree | e4ae83c2209dfd6f875e76130f44bc39adc207ad /audio | |
parent | c7f961cc2216f24e282ed81dbed9be7d29d5ecd0 (diff) |
use new debug and parse API
Changes from https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1355
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1403>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/audiofx/examples/hrtfrender.rs | 2 | ||||
-rw-r--r-- | audio/audiofx/tests/audioloudnorm.rs | 4 | ||||
-rw-r--r-- | audio/csound/examples/effect_example.rs | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/audio/audiofx/examples/hrtfrender.rs b/audio/audiofx/examples/hrtfrender.rs index 98acc1584..cc156e500 100644 --- a/audio/audiofx/examples/hrtfrender.rs +++ b/audio/audiofx/examples/hrtfrender.rs @@ -36,7 +36,7 @@ fn run() -> Result<(), Error> { let uri = &args[1]; let hrir = &args[2]; - let pipeline = gst::parse_launch(&format!( + let pipeline = gst::parse::launch(&format!( "uridecodebin uri={uri} ! audioconvert ! audio/x-raw,channels=1 ! hrtfrender hrir-file={hrir} name=hrtf ! audioresample ! autoaudiosink" ))? diff --git a/audio/audiofx/tests/audioloudnorm.rs b/audio/audiofx/tests/audioloudnorm.rs index 4fd14b0ff..e36055c4d 100644 --- a/audio/audiofx/tests/audioloudnorm.rs +++ b/audio/audiofx/tests/audioloudnorm.rs @@ -39,7 +39,7 @@ fn run_test( }; let pipeline = if let Some(second_input) = second_input { - gst::parse_launch(&format!( + gst::parse::launch(&format!( "audiotestsrc {first_input} num-buffers={num_buffers} samplesperbuffer={samples_per_buffer} ! {format} ! audiomixer name=mixer output-buffer-duration={output_buffer_duration} ! {format} ! audioloudnorm ! appsink name=sink audiotestsrc {second_input} num-buffers={num_buffers} samplesperbuffer={samples_per_buffer} ! {format} ! mixer.", first_input = first_input, second_input = second_input, @@ -49,7 +49,7 @@ fn run_test( format = format, )) } else { - gst::parse_launch(&format!( + gst::parse::launch(&format!( "audiotestsrc {first_input} num-buffers={num_buffers} samplesperbuffer={samples_per_buffer} ! {format} ! audioloudnorm ! appsink name=sink", )) } diff --git a/audio/csound/examples/effect_example.rs b/audio/csound/examples/effect_example.rs index 39fb1af76..779b76035 100644 --- a/audio/csound/examples/effect_example.rs +++ b/audio/csound/examples/effect_example.rs @@ -75,9 +75,9 @@ const CSD: &str = " fn create_pipeline() -> Result<gst::Pipeline, Box<dyn Error>> { let pipeline = gst::Pipeline::default(); - let audio_src = gst::parse_bin_from_description(AUDIO_SRC, true)?.upcast(); + let audio_src = gst::parse::bin_from_description(AUDIO_SRC, true)?.upcast(); - let audio_sink = gst::parse_bin_from_description(AUDIO_SINK, true)?.upcast(); + let audio_sink = gst::parse::bin_from_description(AUDIO_SINK, true)?.upcast(); let csoundfilter = gst::ElementFactory::make("csoundfilter") .property("csd-text", CSD) |