Here's a fun potential CoreMIDI bug
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.