mdGetDefault(3dm) mdGetDefault(3dm)
mdGetDefault - return the name of the default input or output interface
#include <dmedia/midi.h>
char *mdGetDefault(int inout)
mdGetDefault returns a string containing the name of either the default
input or the default output interface. If a value of MD_GET_INPUT is
passed in the argument inout, the default input interface name is
returned. If the value MD_GET_OUTPUT is passed, the default output
interface name is returned. Space for the string is allocated by the
function; the caller is responsible for deallocating the string (via
free(3)) when finished.
mdGetName(3dm), mdIntro(3dm)
Upon successful completion a normal null-terminated string is returned.
If no devices are configured, NULL will be returned.
PPPPaaaaggggeeee 1111 [ Back ]
|