I feel like I must be missing something simple...

Is there a way to get the correct data size of a resource? The only possibilities that I have found are MemHandleSize()/MemPtrSize(), but their documentation says "Call this routine to get the original requested size of a chunk." which sounds like it will be some rounded up size, not the actual number of bytes of data stored.

I am writing code to play back raw sampled sound that I plan to store in custom resources in my app. I will be doing the playback using SndStreamCreate() and its callback. The callback has to repeatedly fill a buffer with data, so I need to be able to read X bytes from my resource, know when I'm out of data, and pad with 0 at the end.

Any help appreciated!

Ted Peters


-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to