renamed PaUtil_GetBufferProcessorInputLatency to PaUtil_GetBufferProcessorInputLatencyFrames and PaUtil_GetBufferProcessorOutputLatency to PaUtil_GetBufferProcessorOutputLatencyFrames. see ticket #161
This commit is contained in:
parent
1938ce6628
commit
cbd24dc45c
12 changed files with 44 additions and 44 deletions
|
|
@ -3004,12 +3004,12 @@ static PaError OpenStream( struct PaUtilHostApiRepresentation *hostApi,
|
|||
|
||||
// Set Input latency
|
||||
stream->streamRepresentation.streamInfo.inputLatency =
|
||||
((double)PaUtil_GetBufferProcessorInputLatency(&stream->bufferProcessor) / sampleRate)
|
||||
((double)PaUtil_GetBufferProcessorInputLatencyFrames(&stream->bufferProcessor) / sampleRate)
|
||||
+ ((inputParameters)?stream->in.latencySeconds : 0);
|
||||
|
||||
// Set Output latency
|
||||
stream->streamRepresentation.streamInfo.outputLatency =
|
||||
((double)PaUtil_GetBufferProcessorOutputLatency(&stream->bufferProcessor) / sampleRate)
|
||||
((double)PaUtil_GetBufferProcessorOutputLatencyFrames(&stream->bufferProcessor) / sampleRate)
|
||||
+ ((outputParameters)?stream->out.latencySeconds : 0);
|
||||
|
||||
// Set SR
|
||||
|
|
|
|||
Loading…
Reference in a new issue