mdGetDefault(3dm)mdGetDefault(3dm)NAMEmdGetDefault - return the name of the default input or output interface
SYNOPSIS
#include <dmedia/midi.h>
char *mdGetDefault(int inout)
DESCRIPTIONmdGetDefault 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.
SEE ALSOmdGetName(3dm), mdIntro(3dm)DIAGNOSTICS
Upon successful completion a normal null-terminated string is returned.
If no devices are configured, NULL will be returned.
Page 1