Changeset 29 for pa_proposals/trunk

Show
Ignore:
Timestamp:
10/04/02 21:54:16 (6 years ago)
Author:
rossbencina
Message:

added Pa_OpenStream() Flag to Prime Initial Buffers Using the Stream Callback proposal

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pa_proposals/trunk/possibilities.html

    r22 r29  
    1818<P><A href="index.html">Enhancement Proposals Index</A>, 
    1919<A href="http://www.portaudio.com/">PortAudio Home Page</A></P> 
    20 <P>Updated: August 24, 2002 </P> 
     20<P>Updated: October 5, 2002 </P> 
    2121 
    2222<H4>Overview</H4> 
     
    7676 
    7777 
     78<H4>Pa_OpenStream() Flag to Prime Initial Buffers Using the Stream Callback</H4> 
     79 
     80<P> 
     81Currently, when a stream is started, host buffers are initially filled with zeros (silence). This is done so that the Stream Callback: a) is called regularly (useful for time syncronisation), b) provides relatively constant latency from calback to output, and c) avoids a peak in processor load while a number of buffers are filled one after another. The downside of this strategy is that the startup latency is held constant, whereas some host APIs may be able to provide significantly lower startup latency if the initial buffers are filled with valid sample data. 
     82</P> 
     83 
     84<P> 
     85Although it is generally held that the above behavior is the most widely useful for streaming audio applications, a flag could be provided to Pa_OpenStream() to indicate that the buffers should initially be primed using the callback: 
     86</P> 
     87 
     88<PRE> 
     89paPrimeBuffersUsingCallback 
     90</PRE> 
     91 
    7892</BODY> 
    7993</HTML>