mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-20 22:56:20 +00:00
audio: Use channel_mask() for AudioCapsBuilder
This commit is contained in:
parent
9b1361b538
commit
b688326383
2 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ fn test_hrtfrender_samples_in_samples_out() {
|
|||
.format(gst_audio::AUDIO_FORMAT_F32)
|
||||
.rate(44_100)
|
||||
.channels(1)
|
||||
.field("channel-mask", gst::Bitmask::new(0x1))
|
||||
.channel_mask(0x1)
|
||||
.build();
|
||||
|
||||
let sink_caps = gst_audio::AudioCapsBuilder::new_interleaved()
|
||||
|
@ -99,7 +99,7 @@ fn test_hrtfrender_implicit_spatial_objects() {
|
|||
.format(gst_audio::AUDIO_FORMAT_F32)
|
||||
.rate(44_100)
|
||||
.channels(8)
|
||||
.field("channel-mask", gst::Bitmask::new(0xc3f))
|
||||
.channel_mask(0xc3f)
|
||||
.build();
|
||||
|
||||
let sink_caps = gst_audio::AudioCapsBuilder::new_interleaved()
|
||||
|
|
|
@ -54,7 +54,7 @@ fn test_stereo_s32() {
|
|||
.format(gst_audio::AUDIO_FORMAT_S2432)
|
||||
.rate(44100)
|
||||
.channels(2)
|
||||
.field("channel-mask", gst::Bitmask::new(0x3))
|
||||
.channel_mask(0x3)
|
||||
.build()
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue