Module: CoreMIDI
- Defined in:
- ext/music_player/music_player.c
Class Method Summary collapse
- .get_destination ⇒ Object
-
.get_number_of_destinations ⇒ Object
CoreMIDI defns.
Class Method Details
.get_destination ⇒ Object
85 86 87 88 89 90 91 92 |
# File 'ext/music_player/music_player.c', line 85 static VALUE core_midi_get_destination (VALUE mod, VALUE idx) { ItemCount ic = NUM2UINT(idx); MIDIEndpointRef ref = MIDIGetDestination(ic); if (NULL == ref) { return Qnil; } return ULONG2NUM((UInt32) ref); } |
.get_number_of_destinations ⇒ Object
CoreMIDI defns
79 80 81 82 83 |
# File 'ext/music_player/music_player.c', line 79 static VALUE core_midi_get_number_of_destinations (VALUE mod) { return UINT2NUM(MIDIGetNumberOfDestinations()); } |