audio: Use channel_mask() for AudioCapsBuilder

This commit is contained in:
Vivia Nikolaidou 2022-10-14 17:50:57 +03:00
parent 9b1361b538
commit b688326383
2 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ fn test_hrtfrender_samples_in_samples_out() {
.format(gst_audio::AUDIO_FORMAT_F32) .format(gst_audio::AUDIO_FORMAT_F32)
.rate(44_100) .rate(44_100)
.channels(1) .channels(1)
.field("channel-mask", gst::Bitmask::new(0x1)) .channel_mask(0x1)
.build(); .build();
let sink_caps = gst_audio::AudioCapsBuilder::new_interleaved() let sink_caps = gst_audio::AudioCapsBuilder::new_interleaved()
@ -99,7 +99,7 @@ fn test_hrtfrender_implicit_spatial_objects() {
.format(gst_audio::AUDIO_FORMAT_F32) .format(gst_audio::AUDIO_FORMAT_F32)
.rate(44_100) .rate(44_100)
.channels(8) .channels(8)
.field("channel-mask", gst::Bitmask::new(0xc3f)) .channel_mask(0xc3f)
.build(); .build();
let sink_caps = gst_audio::AudioCapsBuilder::new_interleaved() let sink_caps = gst_audio::AudioCapsBuilder::new_interleaved()

View file

@ -54,7 +54,7 @@ fn test_stereo_s32() {
.format(gst_audio::AUDIO_FORMAT_S2432) .format(gst_audio::AUDIO_FORMAT_S2432)
.rate(44100) .rate(44100)
.channels(2) .channels(2)
.field("channel-mask", gst::Bitmask::new(0x3)) .channel_mask(0x3)
.build() .build()
); );
} }