Commit ca73d60c authored by Jan Willhaus's avatar Jan Willhaus

Fixed trailing whitespace and did tab2space

parent 34986fc7
......@@ -15,7 +15,7 @@
* Olivier Tristan for feedback and testing
* Glenn Zelniker and Z-Systems engineering for sponsoring the Blocking I/O
* interface.
*
*
*
* Based on the Open Source API proposed by Ross Bencina
* Copyright (c) 1999-2002 Ross Bencina, Phil Burk
......@@ -41,13 +41,13 @@
*/
/*
* The text above constitutes the entire PortAudio license; however,
* The text above constitutes the entire PortAudio license; however,
* the PortAudio community also makes the following non-binding requests:
*
* Any person wishing to distribute modifications to the Software is
* requested to send the modifications to the original developer so that
* they can be incorporated into the canonical version. It is also
* requested that these non-binding requests be included along with the
* they can be incorporated into the canonical version. It is also
* requested that these non-binding requests be included along with the
* license above.
*/
......@@ -186,7 +186,7 @@ PaError initializeBlioRingBuffers(
err = PaUtil_InitializeRingBuffer(
&blio->outputRingBuffer,
outChan*blio->outputSampleSizePow2, ringBufferSize,
outChan*blio->outputSampleSizePow2, ringBufferSize,
data );
assert( !err );
}
......@@ -268,7 +268,7 @@ PaError resetBlioRingBuffers( PaMacBlio *blio )
if( blio->outputRingBuffer.buffer ) {
PaUtil_FlushRingBuffer( &blio->outputRingBuffer );
bzero( blio->outputRingBuffer.buffer,
blio->ringBufferFrames * blio->outputRingBuffer.elementSizeBytes );
blio->ringBufferFrames * blio->outputRingBuffer.elementSizeBytes );
/* Advance buffer */
PaUtil_AdvanceRingBufferWriteIndex( &blio->outputRingBuffer, blio->ringBufferFrames);
//PaUtil_AdvanceRingBufferWriteIndex( &blio->outputRingBuffer, blio->outputRingBuffer.bufferSize );
......@@ -339,7 +339,7 @@ PaError destroyBlioRingBuffers( PaMacBlio *blio )
*
*/
int BlioCallback( const void *input, void *output, unsigned long frameCount,
const PaStreamCallbackTimeInfo* timeInfo,
const PaStreamCallbackTimeInfo* timeInfo,
PaStreamCallbackFlags statusFlags,
void *userData )
{
......@@ -386,8 +386,7 @@ int BlioCallback( const void *input, void *output, unsigned long frameCount,
toWrite = MIN( avail, frameCount);
if( toWrite != frameCount)
bzero( ((char *)output)+toWrite,
frameCount * 1 - toWrite );
bzero( ((char *)output)+toWrite, frameCount * 1 - toWrite );
/* copy the data */
/*printf( "writing %d\n", toWrite );*/
written = PaUtil_ReadRingBuffer( &blio->outputRingBuffer, output, toWrite );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment