• 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: Here's a fun potential CoreMIDI bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Here's a fun potential CoreMIDI bug


  • Subject: Re: Here's a fun potential CoreMIDI bug
  • From: Pete Yandell <email@hidden>
  • Date: Tue, 19 Feb 2002 16:48:33 +1100

OK, now it's stopped doing it! Hmmm...puzzling.

A bit more info:

Previously when I ran this app, the light on my UM-1 would go on and stay on after the app had quit. Running the app again would cause a 2 second pause and the light would sometimes go off and come back on again.

Now that everything is working, the app runs instantly and the UM-1 light flicks on for a moment and then off again as soon as the app exits.

*scratches head*

Oh well.

On Tuesday, February 19, 2002, at 03:20 PM, Pete Yandell wrote:

I have an extremely complex MIDI application:

#include <stdio.h>
#include <CoreMIDI/CoreMIDI.h>

int main (int argc, const char* argv[])
{
printf ("%d\n", (int)MIDIGetNumberOfSources());

return 0;
}

and here is what happens when I run it a dozen times in a row:

% ./MIDIBug
0
% ./MIDIBug
1
% ./MIDIBug
0
% ./MIDIBug
1
% ./MIDIBug
0
% ./MIDIBug
1
% ./MIDIBug
0
% ./MIDIBug
0
% ./MIDIBug
0
% ./MIDIBug
1
% ./MIDIBug
0

Now can anybody explain to me why I don't always get a result of 1,
given I have one source available at all times?

I'm running a Roland UM-1 with Roland's drivers. I'll do some more
testing and follow up if I find anything more.

Pete Yandell
http://pete.yandell.com/


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.



________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Here's a fun potential CoreMIDI bug
      • From: Doug Wyatt <email@hidden>
References: 
 >Here's a fun potential CoreMIDI bug (From: Pete Yandell <email@hidden>)

  • Prev by Date: Questions on MIDINotifications and threads
  • Next by Date: Re: Questions on MIDINotifications and threads
  • Previous by thread: Here's a fun potential CoreMIDI bug
  • Next by thread: Re: Here's a fun potential CoreMIDI bug
  • Index(es):
    • Date
    • Thread