[vlc-commits] [Git][videolan/vlc][master] pipewire: handle AUDIO_CHANNEL_TYPE_AMBISONICS

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sat Apr 18 19:51:15 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
9acb1b02 by Thomas Guillem at 2026-04-18T21:33:00+02:00
pipewire: handle AUDIO_CHANNEL_TYPE_AMBISONICS

- - - - -


1 changed file:

- modules/audio_output/pipewire.c


Changes:

=====================================
modules/audio_output/pipewire.c
=====================================
@@ -590,6 +590,18 @@ static struct vlc_pw_stream *vlc_pw_stream_create(audio_output_t *aout,
         free(role);
     }
 
+    if (fmt->channel_type == AUDIO_CHANNEL_TYPE_AMBISONICS)
+    {
+        fmt->channel_type = AUDIO_CHANNEL_TYPE_BITMAP;
+
+        /* Setup low latency in order to quickly react to ambisonics
+         * filters viewpoint changes. */
+        pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%"PRId64"/%u",
+                           samples_from_vlc_tick(3 * AOUT_MIN_PREPARE_TIME,
+                                                 fmt->i_rate),
+                           fmt->i_rate);
+    }
+
     /* Create the stream */
     struct vlc_pw_stream *s = malloc(sizeof (*s));
     if (unlikely(s == NULL)) {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9acb1b02f60f13dee27c3af876d4a2b5b0020fc0

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9acb1b02f60f13dee27c3af876d4a2b5b0020fc0
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list