From cb1d61f71c6c885b7ef37a429f2c80ddcd7494a0 Mon Sep 17 00:00:00 2001 From: fwcd Date: Tue, 26 Nov 2024 22:18:45 +0100 Subject: [PATCH] AudioUnitManager: Factor out pointer typedef --- src/effects/backends/audiounit/audiounitmanager.h | 6 ++---- src/effects/backends/audiounit/audiounitmanagerpointer.h | 6 ++++++ 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 src/effects/backends/audiounit/audiounitmanagerpointer.h diff --git a/src/effects/backends/audiounit/audiounitmanager.h b/src/effects/backends/audiounit/audiounitmanager.h index 58d8078865e4..aa77a6a26fe4 100644 --- a/src/effects/backends/audiounit/audiounitmanager.h +++ b/src/effects/backends/audiounit/audiounitmanager.h @@ -4,18 +4,16 @@ #import #import -#include #include +#include "effects/backends/audiounit/audiounitmanagerpointer.h" + enum AudioUnitInstantiationType { Sync, AsyncInProcess, AsyncOutOfProcess, }; -class AudioUnitManager; -typedef QSharedPointer AudioUnitManagerPointer; - /// A RAII wrapper around an `AudioUnit`. class AudioUnitManager { public: diff --git a/src/effects/backends/audiounit/audiounitmanagerpointer.h b/src/effects/backends/audiounit/audiounitmanagerpointer.h new file mode 100644 index 000000000000..f04307c56439 --- /dev/null +++ b/src/effects/backends/audiounit/audiounitmanagerpointer.h @@ -0,0 +1,6 @@ +#pragma once + +#include + +class AudioUnitManager; +typedef QSharedPointer AudioUnitManagerPointer;