aboutsummaryrefslogtreecommitdiff
path: root/pd/portmidi_osx/pmdarwin.c
blob: 3ca2c87afe77857130374e1b244b37734aa0f3ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * PortMidi OS-dependent interface for Darwin (MacOS X)
 * Jon Parise <jparise@cmu.edu>
 *
 * $Id: pmdarwin.c,v 1.1.1.1 2003-05-09 16:04:00 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 <stdlib.h>
#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); }