diff --git a/gstreamer-audio/src/caps.rs b/gstreamer-audio/src/caps.rs index 06353aefc..b73b34619 100644 --- a/gstreamer-audio/src/caps.rs +++ b/gstreamer-audio/src/caps.rs @@ -19,6 +19,10 @@ impl AudioCapsBuilder { .format_list(AudioFormat::iter_raw()) } + pub fn new_interleaved() -> Self { + AudioCapsBuilder::new().layout(AudioLayout::Interleaved) + } + pub fn any_features(self) -> AudioCapsBuilder { AudioCapsBuilder { builder: self.builder.any_features(),