Module: CoreMIDI
- Defined in:
- ext/music_player/midiosx.c
Class Method Summary collapse
- .get_destination ⇒ Object
-
.get_number_of_destinations ⇒ Object
CoreMIDI defns.
Class Method Details
.get_destination ⇒ Object
100 101 102 103 104 105 106 107 |
# File 'ext/music_player/midiosx.c', line 100
static VALUE
core_midi_get_destination (VALUE mod, VALUE idx)
{
ItemCount ic = NUM2UINT(idx);
MIDIEndpointRef ref = MIDIGetDestination(ic);
if ((UInt32)NULL == ref) { return Qnil; }
return ULONG2NUM((UInt32) ref);
}
|
.get_number_of_destinations ⇒ Object
CoreMIDI defns
94 95 96 97 98 |
# File 'ext/music_player/midiosx.c', line 94
static VALUE
core_midi_get_number_of_destinations (VALUE mod)
{
return UINT2NUM(MIDIGetNumberOfDestinations());
}
|