Changeset 55 for pa_proposals/trunk/001-UnderflowOverflowHandling.html
- Timestamp:
- 10/26/02 02:04:26 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pa_proposals/trunk/001-UnderflowOverflowHandling.html
r4 r55 18 18 <P><A href="index.html">Enhancement Proposals Index</A>, 19 19 <A href="http://www.portaudio.com/">PortAudio Home Page</A></P> 20 <P>Updated: July 23, 2002 </P>20 <P>Updated: October 26, 2002 </P> 21 21 22 22 <H4>Status</H4> … … 54 54 55 55 <P> 56 A new parameter will be added to the Stream Callback Function that gives the status of the data as bit flags.56 A new parameter and corresponding type will be added to the Stream Callback Function that gives the status of the data as bit flags. 57 57 </P> 58 58 59 59 <PRE> 60 typedef unsigned long PaStreamCallbackFlags; 61 60 62 typedef int (PaStreamCallback)( 61 63 void *inputBuffer, void *outputBuffer, 62 64 unsigned long framesPerBuffer, 63 65 PaTimestamp outTime, 64 unsigned longstatusFlags,66 PaStreamCallbackFlags statusFlags, 65 67 void *userData ); 66 68 </PRE> … … 69 71 70 72 <PRE> 71 #define paInputUnderflow ( 1<<0) /* Input data is all zeros because no real data is available. */72 #define paInputOverflow ( 1<<1) /* Input data was discarded by PortAudio */73 #define paOutputUnderflow ( 1<<2) /* Output data was inserted by PortAudio because the callback is using too much CPU */74 #define paOutputOverflow ( 1<<3) /* Output data will be discarded because no room is available. */</PRE>73 #define paInputUnderflow ((PaStreamCallbackFlags)0x01) /* Input data is all zeros because no real data is available. */ 74 #define paInputOverflow ((PaStreamCallbackFlags)0x02) /* Input data was discarded by PortAudio */ 75 #define paOutputUnderflow ((PaStreamCallbackFlags)0x04) /* Output data was inserted by PortAudio because the callback is using too much CPU */ 76 #define paOutputOverflow ((PaStreamCallbackFlags)0x08) /* Output data will be discarded because no room is available. */</PRE> 75 77 76 78 <P>New rules will govern when the Stream Callback is called:</P>
