From 57045df5fe3ec557e57dc7434ac1a07b5521bffc Mon Sep 17 00:00:00 2001 From: Guenter Geiger Date: Mon, 29 Jul 2002 17:06:19 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r58, which included commits to RCS files with non-trunk default branches. svn path=/trunk/; revision=59 --- pd/portaudio/portmidi-macosx/pmdarwin.c | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pd/portaudio/portmidi-macosx/pmdarwin.c (limited to 'pd/portaudio/portmidi-macosx/pmdarwin.c') diff --git a/pd/portaudio/portmidi-macosx/pmdarwin.c b/pd/portaudio/portmidi-macosx/pmdarwin.c new file mode 100644 index 00000000..510339c3 --- /dev/null +++ b/pd/portaudio/portmidi-macosx/pmdarwin.c @@ -0,0 +1,36 @@ +/* + * PortMidi OS-dependent interface for Darwin (MacOS X) + * Jon Parise + * + * $Id: pmdarwin.c,v 1.1.1.1 2002-07-29 17:06:16 ggeiger Exp $ + */ + +/* + * This file only needs to implement pm_init(), which calls various + * routines to register the available midi devices. This file must + * be separate from the main portmidi.c file because it is system + * dependent, and it is separate from, say, pmwinmm.c, because it + * might need to register devices for winmm, directx, and others. + */ + +#include +#include "portmidi.h" +#include "pmmacosx.h" + +PmError pm_init() +{ + return pm_macosx_init(); +} + +PmError pm_term() +{ + return pm_macosx_term(); +} + +PmDeviceID Pm_GetDefaultInputDeviceID() { return 0; }; +PmDeviceID Pm_GetDefaultOutputDeviceID() { return 0; }; + +void *pm_alloc(size_t s) { return malloc(s); } + +void pm_free(void *ptr) { free(ptr); } + -- cgit v1.2.1