Hello,
I’m having a problem with MidiOutput on mac. Below is a code snippet that tries to find the MidiDevice. It’s returning 0 for the size. Any idea what is going on?
AudioSystem::AudioSystem()
{
int deviceIdx = MidiOutput::getDefaultDeviceIndex();
Logger::outputDebugString(String(MidiOutput::getDevices().size()));
for (int x = 0; x < MidiOutput::getDevices().size(); x++){
Logger::outputDebugString("*" + MidiOutput::getDevices()[x]);
}
Logger::outputDebugString(T("Opening MIDI Device: ") + MidiOutput::getDevices()[deviceIdx]);
// Open the default MIDI device
myMidiOutput = MidiOutput::openDevice(deviceIdx);
}
Thanks.[/code]