pure-data/src/s_midi_oss.c

/* Copyright (c) 1997-1999 Guenter Geiger, Miller Puckette, Larry Troxler,
* Winfried Ritsch, Karl MacMillan, and others.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution.  */

/* MIDI I/O for Linux using OSS */

#include <stdio.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include "m_pd.h"
#include "s_stuff.h"

#define MAXNDEV
static int oss_nmididevs;
static char oss_midinames[MAXNDEV][20];
static int oss_nmidiin;
static int oss_midiinfd[MAXMIDIINDEV+1]; /* +1 to suppress buggy GCC warning */
static int oss_nmidiout;
static int oss_midioutfd[MAXMIDIOUTDEV+1];

static void close_one_midi_fd(int fd)
{}

static void oss_midiout(int fd, int n)
{}

#define O_MIDIFLAG

void sys_do_open_midi(int nmidiin, int *midiinvec,
    int nmidiout, int *midioutvec)
{}

#define md_msglen(x)

void sys_putmidimess(int portno, int a, int b, int c)
{}

void sys_putmidibyte(int portno, int byte)
{}

void sys_poll_midi(void)
{}

void sys_close_midi()
{}

void midi_oss_init(void)
{}

void midi_getdevs(char *indevlist, int *nindevs,
    char *outdevlist, int *noutdevs, int maxndev, int devdescsize)
{}