diff options
author | Vivia Nikolaidou <vivia@ahiru.eu> | 2022-10-14 17:50:57 +0300 |
---|---|---|
committer | Vivia Nikolaidou <vivia@ahiru.eu> | 2022-10-14 18:21:28 +0300 |
commit | b68832638313c1e659240881a023a3775ba5d4fe (patch) | |
tree | 70047761cfb0e48fc9c330308ae022a5623ddf55 /audio | |
parent | 9b1361b538ad2c214012571a22d0c871eb75f805 (diff) |
audio: Use channel_mask() for AudioCapsBuilder
Diffstat (limited to 'audio')
-rw-r--r-- | audio/audiofx/tests/hrtfrender.rs | 4 | ||||
-rw-r--r-- | audio/claxon/tests/claxondec.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/audio/audiofx/tests/hrtfrender.rs b/audio/audiofx/tests/hrtfrender.rs index 1b0abd666..ac27c29c2 100644 --- a/audio/audiofx/tests/hrtfrender.rs +++ b/audio/audiofx/tests/hrtfrender.rs @@ -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() diff --git a/audio/claxon/tests/claxondec.rs b/audio/claxon/tests/claxondec.rs index c9cfe7435..13000ccb9 100644 --- a/audio/claxon/tests/claxondec.rs +++ b/audio/claxon/tests/claxondec.rs @@ -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() ); } |