• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Custom MIDI driver does not appear in Audio MIDI Setup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom MIDI driver does not appear in Audio MIDI Setup


  • Subject: Custom MIDI driver does not appear in Audio MIDI Setup
  • From: "Chris Alfred" <email@hidden>
  • Date: Tue, 10 May 2005 08:35:50 +1000
  • Organization: SmartAV

Hi All,

I have created a dummy MIDI driver. I placed the resultant .plugin in the
'/Library/Audio/MIDI Drivers' directory.

The MIDI server finds the driver and creates the driver object as expected,
however, the device does not appear in Audio MIDI Setup.

What else do I have to do?

I have included the source below.

Regards,
Chris

==============================================================================
file: SAVTestMIDIDriver.exp
==============================================================================
_NewSAVTestMIDIDriver

==============================================================================
file: SAVTestMIDIDriver.h
==============================================================================
#ifndef __SAVTestMIDIDriver_h__
#define __SAVTestMIDIDriver_h__

#include "MIDIDriverClass.h"
#include <AvailabilityMacros.h>

class SAVTestMIDIDriver : public MIDIDriver {
public:
  SAVTestMIDIDriver();
  virtual ~SAVTestMIDIDriver();

private:
};

#endif // __SAVTestMIDIDriver_h__

==============================================================================
file: SAVTestMIDIDriver.cpp
==============================================================================
#include "SAVTestMIDIDriver.h"

#define DEBUG  1

//B5771A9C-C064-11D9-AA6D-000A95AFBAEC
#define kFactoryUUID CFUUIDGetConstantUUIDWithBytes(NULL, 0xB5, 0x77, 0x1A,
0x9C, 0xC0, 0x64, 0x11, 0xD9, 0xAA, 0x6D, 0x00, 0x0A, 0x95, 0xAF, 0xBA,
0xEC)

//-------------------------------------------------------------------
// Implementation of the factory function for this type.

extern "C" void *NewSAVTestMIDIDriver(CFAllocatorRef allocator, CFUUIDRef
typeID)
{
  if (CFEqual(typeID, kMIDIDriverTypeID)) {
     #if DEBUG
        fprintf(stderr, "SAVTestMIDIDriver: NewSAVTestMIDIDriver\n");
     #endif
     try {
        SAVTestMIDIDriver *result = new SAVTestMIDIDriver;
        #if DEBUG
           fprintf(stderr, "SAVTestMIDIDriver: NewSAVTestMIDIDriver ok\n");
        #endif
        return result->Self();
     } catch (...) {
        #if DEBUG
           fprintf(stderr, "SAVTestMIDIDriver: NewSAVTestMIDIDriver an
exception was raised, so the driver is not being instantiated\n");
        #endif
        return NULL;
     }
  }
  return NULL;
}

//-------------------------------------------------------------------
// Public functions

SAVTestMIDIDriver::SAVTestMIDIDriver() : MIDIDriver(kFactoryUUID)
{
  #if DEBUG
     fprintf(stderr, "SAVTestMIDIDriver: Creating\n");
  #endif
}

SAVTestMIDIDriver::~SAVTestMIDIDriver()
{
   #if DEBUG
       fprintf(stderr, "SAVTestMIDIDriver: Deleting\n");
   #endif
}

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Custom MIDI driver does not appear in Audio MIDI Setup
      • From: Kurt Revis <email@hidden>
  • Prev by Date: Re: How to cut silence away from the beginning of output signal
  • Next by Date: Re: Noob question: sending button clicks to AudioUnits?
  • Previous by thread: Re: Multichannel audio and sharing data between channels of an audio unit?
  • Next by thread: Re: Custom MIDI driver does not appear in Audio MIDI Setup
  • Index(es):
    • Date
    • Thread