[Bug 272004] multimedia/pipewire: unbreak audio with default config

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 15 Jun 2023 03:57:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272004

            Bug ID: 272004
           Summary: multimedia/pipewire: unbreak audio with default config
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://gitlab.freedesktop.org/pipewire/pipewire/-/iss
                    ues/2530
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: arrowd@FreeBSD.org
          Reporter: jbeich@FreeBSD.org
          Assignee: arrowd@FreeBSD.org
             Flags: maintainer-feedback?(arrowd@FreeBSD.org)

Created attachment 242783
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=242783&action=edit
v1 (apply via "git am")

FreeBSD kernel doesn't support ALSA, so there're no "hw" devices, only plugins.
alsa-lib provides default config to map /dev/dsp to pcm.default using "oss"
plugin. Let's make pipewire use it.

Based on bug 255348. I didn't test planar vs. interleaved samples but bug
184006 should handle float to integer conversion.

$ mpv --no-video --ao=pipewire --msg-level=ao=v
https://feeds.fireside.fm/bsdnow/rss
[...]
[ao] Trying audio driver 'pipewire'
[ao/pipewire] requested format: 48000 Hz, stereo channels, floatp
[ao/pipewire] Headers version: 0.3.62
[ao/pipewire] Library version: 0.3.62
[ao/pipewire] Core user: foo
[ao/pipewire] Core host: 131amd64-default
[ao/pipewire] Core version: 0.3.62
[ao/pipewire] Core name: pipewire-0
[ao/pipewire] device buffer: 960 samples.
[ao/pipewire] using soft-buffer of 9600 samples.
AO: [pipewire] 48000Hz stereo 2ch floatp
A: 00:00:00 / 00:46:40 (0%) Cache: 184s/6MB

-- 
You are receiving this mail because:
You are the assignee for the bug.