• 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: Doug Wyatt <email@hidden>
  • Date: Tue, 19 Feb 2002 09:27:42 -0800

Pete, would you please write this up as a bug anyhow? Are you on a dual-processor machine?

Off the top of my head, without going back to the source to make sure I'm handling this condition correctly, there could be a window of time during which the MIDIServer is in the process of shutting down where, if a new client starts communicating with it, the server -- instead of being in its normal, functional state -- will be in a partially torn-down state.

Doug


On Monday, February 18, 2002, at 09:48 , Pete Yandell wrote:
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.


--
Doug Wyatt
work: email@hidden (CoreAudio)
personal: email@hidden http://www.sonosphere.com

"There is no way to peace. Peace is the way."
-- A.J. Muste
_______________________________________________
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:
    • Sound playback under Carbon
      • From: Martin Hairer <email@hidden>
References: 
 >Re: Here's a fun potential CoreMIDI bug (From: Pete Yandell <email@hidden>)

  • Prev by Date: Re: Questions on MIDINotifications and threads
  • Next by Date: Re: Sound Manager & MIDI callbacks, interrupts and threads
  • Previous by thread: Re: Here's a fun potential CoreMIDI bug
  • Next by thread: Sound playback under Carbon
  • Index(es):
    • Date
    • Thread