Changeset 32

Show
Ignore:
Timestamp:
10/13/02 14:50:16 (6 years ago)
Author:
rossbencina
Message:

renamed PaCallbackTimeInfo? to PaStreamCallbackTimeInfo?
renamed inputBufferADCTime to inputBufferAdcTime
renamed outputBufferDACTime to outputBufferDacTime

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pa_proposals/trunk/015-ImproveCallbackTimestampInfo.html

    r24 r32  
    5252<P> 
    5353Remove the current outTime parameter from the audio callback, and  
    54 replace it with a pointer to a PaCallbackTimeInfo 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),  
     54replace it with a pointer to a PaStreamCallbackTimeInfo structure which contains 
     55the time at which the first sample of the input buffer was received at the ADC input (inputBufferAdcTime), 
     56the time at which the first sample of the output buffer will exit the DAC (outputBufferDacTime),  
    5757and the time at which the callback was initiated (currentTime). These times are all expressed 
    5858in seconds based on the stream-specific clock returned by Pa_GetStreamTime(). 
     
    6060 
    6161<PRE> 
    62 typedef struct PaCallbackTimeInfo{ 
    63     PaTime inputBufferADCTime; 
     62typedef struct PaStreamCallbackTimeInfo{ 
     63    PaTime inputBufferAdcTime; 
    6464    PaTime currentTime; 
    65     PaTime outputBufferDACTime, 
    66 } PaCallbackTimeInfo; 
     65    PaTime outputBufferDacTime, 
     66} PaStreamCallbackTimeInfo; 
    6767 
    6868typedef int PortAudioCallback( 
    6969      void *inputBuffer, void *outputBuffer, 
    70       unsigned long framesPerBuffer, PaCallbackTimeInfo *timeInfo, 
     70      unsigned long framesPerBuffer, const PaStreamCallbackTimeInfo *timeInfo, 
    7171      unsigned long flags, void *userData); 
    7272</PRE>