audiomixertest: improve codebase to make it work correctly with wp 0.5 38/30238/1
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Wed, 4 Sep 2024 08:05:52 +0000 (11:05 +0300)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Wed, 4 Sep 2024 08:05:52 +0000 (11:05 +0300)
commit4ea6fd09054ae92ad10c5e0befc940507feb3ff0
treeed131c5a67c41bee15c9b3d42dee91a8aa70fb51
parente4bd427ac4573ddbbda65d5171b3dbdfba5f7688
audiomixertest: improve codebase to make it work correctly with wp 0.5

- Replace g_warning() with fprintf(), so that we don't need to enable
  WIREPLUMBER_DEBUG to actually read those messages.
- Make it so that the help message can be printed before connecting
  to pipewire and waiting for controls.
- Remove the race condition mitigation hack that was previously there,
  in case ensure_controls() did not discover all controls initially.
- Lock the audiomixer properly when using its methods and structures.

Bug-AGL: SPEC-4934
Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com>
Change-Id: Ia4b9448dee83838858153f1c1c744e962294cd4e
src/audiomixertest.c