Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Writing from USB to Disk continuously....



Hello,

Our device streams data over USB at about 27MB/sec to a mac computer. Our software on the mac then displays the data, and if the user presses the record button, records it to disk.

I was wondering if anybody had any insight as to how to correctly do this, or streamline the process from what we are doing right now:

We are initially sending 4 async USB read calls, each one with its own buffer. The call back function for each read calls another function which displays the data, and if the record variable is set, writes it to disk using fwrite(). It basically works as a circular buffer.

Should we be using fwrite() at all? Is this the correct overall approach to doing this?

Since we are writing a large amount of data, it seems like it would be great to have an async version of disk writing functions for this purpose.

Cheers,
Juan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.