Changeset 32
- Timestamp:
- 10/13/02 14:50:16 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pa_proposals/trunk/015-ImproveCallbackTimestampInfo.html
r24 r32 52 52 <P> 53 53 Remove the current outTime parameter from the audio callback, and 54 replace it with a pointer to a Pa CallbackTimeInfo structure which contains55 the time at which the first sample of the input buffer was received at the ADC input (inputBufferA DCTime),56 the time at which the first sample of the output buffer will exit the DAC (outputBufferD ACTime),54 replace it with a pointer to a PaStreamCallbackTimeInfo structure which contains 55 the time at which the first sample of the input buffer was received at the ADC input (inputBufferAdcTime), 56 the time at which the first sample of the output buffer will exit the DAC (outputBufferDacTime), 57 57 and the time at which the callback was initiated (currentTime). These times are all expressed 58 58 in seconds based on the stream-specific clock returned by Pa_GetStreamTime(). … … 60 60 61 61 <PRE> 62 typedef struct Pa CallbackTimeInfo{63 PaTime inputBufferA DCTime;62 typedef struct PaStreamCallbackTimeInfo{ 63 PaTime inputBufferAdcTime; 64 64 PaTime currentTime; 65 PaTime outputBufferD ACTime,66 } Pa CallbackTimeInfo;65 PaTime outputBufferDacTime, 66 } PaStreamCallbackTimeInfo; 67 67 68 68 typedef int PortAudioCallback( 69 69 void *inputBuffer, void *outputBuffer, 70 unsigned long framesPerBuffer, PaCallbackTimeInfo *timeInfo,70 unsigned long framesPerBuffer, const PaStreamCallbackTimeInfo *timeInfo, 71 71 unsigned long flags, void *userData); 72 72 </PRE>
