In my code, I call
ret = MIDIClientCreate(cname, NULL, NULL, &mclient);
for which the first time is returns ret == 0 , which is ok.
I then call
ret = MIDIClientDispose(data->mclient);
for which mclient is the same mclient instance as the one being created. ret is 0.
I then want to re-detect the midi devices, so I create the client again and subsequently run through the list of midi sources. However, on creating the client again using :
ret = MIDIClientCreate(cname, NULL, NULL, &mclient);
It gives me ret == -50 , which is a (paramErr): error in user parameter list
What is causing this? Help greatly appreciated.
Thanks.
|