Struct coremidi::Sources [−][src]
pub struct Sources;
Expand description
Source endpoints available in the system.
The number of sources available in the system can be retrieved with:
let number_of_sources = coremidi::Sources::count();
The sources in the system can be iterated as:
for source in coremidi::Sources {
println!("{}", source.display_name().unwrap());
}
Implementations
Get the number of sources available in the system for receiving MIDI messages. See MIDIGetNumberOfSources.