[Portaudio] DirectSound Latency

Robert Bielik robert.bielik at xponaut.se
Sat Jun 26 02:40:48 EDT 2010


Ross Bencina skrev:
> Hi Dmitry
>  
>  > I modified it to the following way:
>  > stream->framesPerDSBuffer = minLatencyFrames;
>  
> Ok, but this would fail totally if user buffer frames > min latency 
> frames. and, further, I would think this needs to be at least 2x for 
> input and 2x for output. Finally, I think you aer breaking the spec by 
> not taking any notice of the user latency settings.

Hmm.. why not have a PA mode where you don't set user buffer size? I.e. just use the number of frames in the
callback call, which then would be dynamic? Then you could have as low a device buffer size as the system
could handle?

/Rob


More information about the Portaudio mailing list