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

Here's a fun potential CoreMIDI bug


  • Subject: Here's a fun potential CoreMIDI bug
  • From: Pete Yandell <email@hidden>
  • Date: Tue, 19 Feb 2002 15:20:02 +1100

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.

  • Follow-Ups:
    • Re: Here's a fun potential CoreMIDI bug
      • From: Pete Yandell <email@hidden>
  • Prev by Date: Re: Questions on data in MIDIPackets
  • Next by Date: Re: Questions on data in MIDIPackets
  • Previous by thread: Re: coreaudio-api digest, Vol 2 #48 - 11 msgs
  • Next by thread: Re: Here's a fun potential CoreMIDI bug
  • Index(es):
    • Date
    • Thread