summaryrefslogtreecommitdiff
path: root/src/drumgizmo.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-05-28 21:24:40 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-05-28 21:24:40 +0200
commit1d6833cfcb0b5bf4890fa15b5013d7490af48f69 (patch)
tree1e06841c5047b3fbab6c1df0185b56624bc5adc1 /src/drumgizmo.h
parent028dab3a99d749159ee9cb94796d6e010a64fdcf (diff)
Hand over audio engines to DrumGizmo by reference instead of by pointer.
Diffstat (limited to 'src/drumgizmo.h')
-rw-r--r--src/drumgizmo.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/drumgizmo.h b/src/drumgizmo.h
index ea04603..3f2d17c 100644
--- a/src/drumgizmo.h
+++ b/src/drumgizmo.h
@@ -49,7 +49,8 @@ class DrumGizmo
{
public:
DrumGizmo(Settings& settings,
- AudioOutputEngine *outputengine, AudioInputEngine *inputengine);
+ AudioOutputEngine& outputengine,
+ AudioInputEngine& inputengine);
virtual ~DrumGizmo();
bool init();
@@ -82,8 +83,8 @@ protected:
Mutex mutex;
- AudioOutputEngine *oe;
- AudioInputEngine *ie;
+ AudioOutputEngine& oe;
+ AudioInputEngine& ie;
std::list< Event* > activeevents[MAX_NUM_CHANNELS];