• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Strange problem with MidiClientCreate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange problem with MidiClientCreate


  • Subject: Re: Strange problem with MidiClientCreate
  • From: Pier <email@hidden>
  • Date: Mon, 16 Sep 2013 14:21:51 +0800

I've resolved this error, it's ok. It was caused by an uninitalised variable. 

I have however a new question. 

Again, when I connected more midi devices, and called 

ret = MIDIClientCreate(cname, NULL, NULL, &mclient);

a second time, I don't see an update of the number of devices when I use. 

endpoints = MIDIGetNumberOfSources();

as a result, I'm unable to see the new midi devices plugged in. 

However, if I close my app and start again, I'm able to see the new devices. 

Has anyone encountered this? 

Thanks. 

Pier.



On 16 Sep, 2013, at 1:01 PM, Pier <email@hidden> wrote:

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. 

Pier.




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Strange problem with MidiClientCreate (From: Pier <email@hidden>)

  • Prev by Date: Strange problem with MidiClientCreate
  • Next by Date: Re: Hacking ZIP created on Windows for Mac OS X permissions
  • Previous by thread: Strange problem with MidiClientCreate
  • Next by thread: Re: Strange problem with MidiClientCreate
  • Index(es):
    • Date
    • Thread