diff options
Diffstat (limited to 'sound/mpu401.h')
-rw-r--r-- | sound/mpu401.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/mpu401.h b/sound/mpu401.h index 365c46c5a5..213af64b6b 100644 --- a/sound/mpu401.h +++ b/sound/mpu401.h @@ -35,16 +35,12 @@ class MidiDriver_MPU401; class MidiChannel_MPU401 : public MidiChannel { - friend class MidiDriver_MPU401; private: - MidiDriver_MPU401 *_owner; + MidiDriver *_owner; bool _allocated; byte _channel; - void init (MidiDriver_MPU401 *owner, byte channel); - void allocate() { _allocated = true; } - public: MidiDriver *device(); byte getNumber() { return _channel; } @@ -64,6 +60,10 @@ public: // SysEx messages void sysEx_customInstrument (uint32 type, byte *instr); + + // Only to be called by the owner + void init (MidiDriver *owner, byte channel); + bool allocate(); }; |