> generally vfs is not too happy to do that. filestreaming can do
> that, though. perhaps consider using that?

Hmm, I looked at the FileStream docs and it doesn't look like you can use them 
to read/write to expansion cards (e.g. the Treo 650's SD card).  So when I 
download audio files I would be limited by the memory built into the Treo.

Is there any other way to get non-exclusive write access to the SD card, even 
via unsupported ("secret") calls?  

One alternative that would accomplish my goal of simultaneous file download and 
playback would be an algorithm something like this:

1) Start download of file A
2) When enough of A has been buffered for stutter-free playback
   a) Copy A to file B
   b) Start playing B
   c) When playback of B finishes and it isn't the end of the song
      i)   Copy portion of A that isn't in B to B'
      ii)  Start playing B'
      iii) Goto (c)

This approach seems unnecessarily complex, and it could result in playback gaps 
(audio skips).  It may also have poor performance due to lots of file copying.

This is all I've come up with so far, so I guess I'll have to think about it 
some more.

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

Reply via email to