added userFramesPerBuffer parameter to SelectHostBufferSize in preparation for improving asio buffer size handling
This commit is contained in:
parent
b5fc9f995f
commit
d03dd9e357
1 changed files with 4 additions and 4 deletions
|
|
@ -1629,7 +1629,7 @@ static void ZeroOutputBuffers( PaAsioStream *stream, long index )
|
|||
}
|
||||
|
||||
|
||||
static unsigned long SelectHostBufferSize( unsigned long suggestedLatencyFrames,
|
||||
static unsigned long SelectHostBufferSize( unsigned long suggestedLatencyFrames, unsigned long userFramesPerBuffer,
|
||||
PaAsioDriverInfo *driverInfo )
|
||||
{
|
||||
unsigned long result;
|
||||
|
|
@ -2095,15 +2095,15 @@ static PaError OpenStream( struct PaUtilHostApiRepresentation *hostApi,
|
|||
if( usingBlockingIo )
|
||||
{
|
||||
/** @todo REVIEW selection of host buffer size for blocking i/o */
|
||||
/* Use default host latency for blocking i/o. */
|
||||
framesPerHostBuffer = SelectHostBufferSize( 0, driverInfo );
|
||||
|
||||
framesPerHostBuffer = SelectHostBufferSize( 0, framesPerBuffer, driverInfo );
|
||||
|
||||
}
|
||||
else /* Using callback interface... */
|
||||
{
|
||||
framesPerHostBuffer = SelectHostBufferSize(
|
||||
(( suggestedInputLatencyFrames > suggestedOutputLatencyFrames )
|
||||
? suggestedInputLatencyFrames : suggestedOutputLatencyFrames),
|
||||
? suggestedInputLatencyFrames : suggestedOutputLatencyFrames), framesPerBuffer,
|
||||
driverInfo );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue