| 62 | } |
| 63 | |
| 64 | void MidiOutputModule::InitController() |
| 65 | { |
| 66 | MidiController* controller = TheSynth->FindMidiController(mModuleSaveData.GetString("controller")); |
| 67 | if (controller) |
| 68 | mDevice.ConnectOutput(controller->GetDeviceOut().c_str(), mModuleSaveData.GetInt("channel")); |
| 69 | |
| 70 | BuildControllerList(); |
| 71 | |
| 72 | const std::vector<std::string>& devices = mDevice.GetPortList(false); |
| 73 | for (int i = 0; i < devices.size(); ++i) |
| 74 | { |
| 75 | if (strcmp(devices[i].c_str(), mDevice.Name()) == 0) |
| 76 | mControllerIndex = i; |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | void MidiOutputModule::DrawModule() |
| 81 | { |
nothing calls this directly
no test coverage detected