"Marc A. Lepage" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED] dev-forum:
> Is there a list somewhere of the minimum and maximum buffer sizes for > SndStreamCreate for various devices? I use these parameters: > > 11025 > sndUInt8 > sndMono > > so the buffer size is the same as the number of samples. > > I request a size of 1024, but on Tungsten E, I seem to always get a > minimum of 4096. At this sample rate, that's 0.37s which is quite a bit > of latency. > > So I'm wondering why it is so high on this device, and what the lower > limit is for each device. > Yeah, I was wondering about this too. Unless I've missed something stupid (not so unlikely) the only options I see are: a) Run the stream at 44.1K and just send out duplicate data (you can even filter it on the fly if you want.) This seems kinda wasteful - though I guess you can code it up pretty tight for a 4:1 rate ratio. b) Save the buffer address that the callback gives you and write to it _after_ the callback is done. This sure doesn't seem kosher, but might work. I'll probably give it a try. -jim -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
