diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-12-15 00:57:02 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-12-15 00:57:02 +0000 |
commit | 90d5b8b4a064420d74678654e94ea4755b377f21 (patch) | |
tree | 5d49b9f6ae17b75c98ad1a8302a0d84f1d99f75b /pd/portmidi/pm_mac/pmmac.c | |
parent | 59ad9e9cf0a72b31f8bfd371cb97536ed4d4fe61 (diff) |
checking in missing files on behalf of Miller (cleared it with him first). The files are from portmidi17nov04.zip
svn path=/trunk/; revision=4216
Diffstat (limited to 'pd/portmidi/pm_mac/pmmac.c')
-rw-r--r-- | pd/portmidi/pm_mac/pmmac.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pd/portmidi/pm_mac/pmmac.c b/pd/portmidi/pm_mac/pmmac.c new file mode 100644 index 00000000..fbf31c83 --- /dev/null +++ b/pd/portmidi/pm_mac/pmmac.c @@ -0,0 +1,42 @@ +/* pmmac.c -- PortMidi os-dependent code */
+
+/* This file only needs to implement:
+pm_init(), which calls various routines to register the
+available midi devices,
+Pm_GetDefaultInputDeviceID(), and
+Pm_GetDefaultOutputDeviceID().
+It is seperate from pmmacosxcm because we might want to register
+non-CoreMIDI devices.
+*/
+
+#include "stdlib.h"
+#include "portmidi.h"
+#include "pmmacosxcm.h"
+
+PmError pm_init()
+{
+ return pm_macosxcm_init();
+}
+
+void pm_term(void)
+{
+ pm_macosxcm_term();
+}
+
+PmDeviceID pm_default_input_device_id = -1;
+PmDeviceID pm_default_output_device_id = -1;
+
+PmDeviceID Pm_GetDefaultInputDeviceID()
+{
+ return pm_default_input_device_id;
+}
+
+PmDeviceID Pm_GetDefaultOutputDeviceID() {
+ return pm_default_output_device_id;
+}
+
+void *pm_alloc(size_t s) { return malloc(s); }
+
+void pm_free(void *ptr) { free(ptr); }
+
+
|