Skip to content

Commit

Permalink
AudioUnitManager: Factor out pointer typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Nov 29, 2024
1 parent 8b2813c commit cb1d61f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/effects/backends/audiounit/audiounitmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@
#import <AudioToolbox/AudioToolbox.h>
#import <CoreAudioTypes/CoreAudioTypes.h>

#include <QSharedPointer>
#include <QString>

#include "effects/backends/audiounit/audiounitmanagerpointer.h"

enum AudioUnitInstantiationType {
Sync,
AsyncInProcess,
AsyncOutOfProcess,
};

class AudioUnitManager;
typedef QSharedPointer<AudioUnitManager> AudioUnitManagerPointer;

/// A RAII wrapper around an `AudioUnit`.
class AudioUnitManager {
public:
Expand Down
6 changes: 6 additions & 0 deletions src/effects/backends/audiounit/audiounitmanagerpointer.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#pragma once

#include <QSharedPointer>

class AudioUnitManager;
typedef QSharedPointer<AudioUnitManager> AudioUnitManagerPointer;

0 comments on commit cb1d61f

Please sign in to comment.