• 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: Should MIDINotifyProc work in command-line programs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should MIDINotifyProc work in command-line programs?


  • Subject: Re: Should MIDINotifyProc work in command-line programs?
  • From: Herbie Robinson <email@hidden>
  • Date: Thu, 19 Sep 2002 18:23:40 -0400

Hi everyone,

Quick question on MIDINotifyProc -- should one expect the
MIDINotifyProc to ever be called, if the MIDIClientCreate() is in a
UNIX command-line application, that doesn't have a Carbon or Cocoa
run-loop?

I've been running MIDI in a Unix command line app and all i seem to have to do is call nanosleep and the callbacks get called.

You can also call CFRunLoop yourself. It's part of Core Foundation and it used by Carbon and Cocoa. If your app is responding to events (rather than generating them), this would be a good way to go. The documentation on how to use CFRunLoop is a little sketchy (OK, that's an understatement....)...

--
-*****************************************
** http://www.curbside-recording.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.

References: 
 >Should MIDINotifyProc work in command-line programs? (From: John Lazzaro <email@hidden>)

  • Prev by Date: how to tell if you can change a data source under program control
  • Next by Date: Re: Fast Dispatch
  • Previous by thread: Re: Should MIDINotifyProc work in command-line programs?
  • Next by thread: Re: Should MIDINotifyProc work in command-line programs?
  • Index(es):
    • Date
    • Thread