• 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: SysEx Progress
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SysEx Progress


  • Subject: Re: SysEx Progress
  • From: Kurt Revis <email@hidden>
  • Date: Wed, 29 Sep 2004 00:26:03 -0700

On Sep 28, 2004, at 12:07 AM, Peter Krajcik wrote:

1. What is the recommended method to monitor progress of MIDISendSysex() ?

I have to send large amount of SysEx data (10k+) and need to show progress bar.

My idea was to send my data in junks (let's say 512 bytes) and after
each call to CompletionProcedure set pointer to start of data accordingly
and increase my progress bar after each call to CompletionProcedure.

This will probably work, but it's not the way that MIDISendSysex() was intended to be used.


I would recommend:

* Put all your data in the MIDISysexSendRequest structure, and only call MIDISendSysex() once.
* Keep a pointer to the MIDISysexSendRequest.
* Periodically check the value of bytesToSend in the MIDISysexSendRequest, using some kind of timer (for instance, an NSTimer or CFRunLoopTimer). bytesToSend will be updated as the sysex data is sent (CoreMIDI does this for you, in a separate thread).
* When bytesToSend reaches 0, the sysex send is done, and your completion procedure will be called.
* in your completion procedure, do whatever you need to do to clean up.


--
Kurt Revis
email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >SysEx Progress (From: Peter Krajcik <email@hidden>)

  • Prev by Date: Re: question about CoreMIDI & cocoa
  • Next by Date: Re: question about CoreMIDI & cocoa
  • Previous by thread: Re: SysEx Progress
  • Next by thread: Measuring audio signal strength
  • Index(es):
    • Date
    • Thread