-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When you add devices and app is active it's not refreshed by MIKMIDI #120
Comments
Thanks for the report, @alejandroluengo. When you say "virtual synth" I presume you mean virtual endpoint (ie. |
Thanks for the help, I will write you to your email now |
Alejandro sent me a video that clarified this for me. The problem is that when he quits (by swiping up in the multitasking UI) an external synthesizer app, the virtual destination endpoint it presents is (correctly) removed from the array returned by Presumably this is because MIKMIDIDeviceManager is either not seeing or not properly responding to a notification that the new virtual destination was created (by the other app). |
He send me a quick workaround and now it's working. He told me that he will fix it soon. Thanks for that @armadsen |
Hi, I have the same problem. Can you tell me what is the workaround for this? |
Hi @akmidd: The workaround I provided to @alejandroluengo was: At the top of your source file create a category to trick the compiler into letting you call a private method: @interface MIKMIDIDeviceManager (Private)
- (void)retrieveVirtualEndpoints; // Just to make the compiler let us call this "private" method
@end Then, before you call [deviceManager retrieveVirtualEndpoints]; // This should force MIKMIDIDeviceManager to update its list. I do still intend to fix this for real, of course. |
Thanks. It works now. |
You could just do |
It looks like |
@akoszegi: The following should work:
Note that it will provoke a warning ("No method declared with Objective-C selector 'retrieveVirtualEndpoints'"), but it will work fine. Still need to fix this in MIKMIDI... |
Thanks! That worked. |
Should be fixed by #210. |
Hi there
I noticed the following situation when app it's running:
If I double press home button and close a virtual synth if I call [[MIKMIDIDeviceManager sharedDeviceManager] virtualDestinations] the device it's removed from MIKMIDI (great!) but if I double press home and open a new synth when I call [[MIKMIDIDeviceManager sharedDeviceManager] virtualDestinations] the new synth it's not retrieved by MIKMIDI.
The only way of getting new instruments it's by closing the app and opening again
The text was updated successfully, but these errors were encountered: