• 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: Tue, 17 Sep 2013 09:43:50 +0800


Ok I tried calling it manually …. MIDIGetNumberOfSources doesn't give me the correct number still. 
Here's what I did. 

Open up my app. 
Call MIDIGetNumberOfSources -> value == 1
Open up Alchemy
Call MIDIGetNumberOfSources -> value still remains at 1

However if I start up my app with Alchemy Synth running in the background, 
MIDIGetNumberOfSources -> value == 2

How do I make sure the number of sources is correct when I call it? 

Thanks! 

Pier.



On 17 Sep, 2013, at 2:06 AM, SARAYUTH THAMPOKIN <email@hidden> wrote:

You don't need to create a "MIDIClient" for calling function MIDIGetNumberOfSource()



On Sep 16, 2556 BE, at 12: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: Re: Hacking ZIP created on Windows for Mac OS X permissions
  • Next by Date: Re: Hacking ZIP created on Windows for Mac OS X permissions
  • Previous by thread: Re: Strange problem with MidiClientCreate
  • Next by thread: HAL IO thread priority and glitching
  • Index(es):
    • Date
    • Thread