audiomixertest: improve codebase to make it work correctly with wp 0.5 64/30264/1
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Wed, 4 Sep 2024 08:05:52 +0000 (11:05 +0300)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 9 Sep 2024 09:13:12 +0000 (11:13 +0200)
commit600154db61ab584f261b4a0d08a53e1f54eda633
tree1796ed773322678b0b98744315ad044606a7f70f
parent67bfd23df1bbfcc162e656278b14c27e2fd8d52d
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