Skip to content

Commit

Permalink
Cleanup of code
Browse files Browse the repository at this point in the history
git-svn-id: https://subversion.assembla.com/svn/portaudio/portaudio/trunk@1857 0f58301d-fd10-0410-b4af-bbb618454e57
  • Loading branch information
robiwano committed Jul 10, 2012
1 parent 12c7189 commit 0fd70db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/paex_record_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static int threadFunctionReadFromRawFile(void* ptr)
{
ring_buffer_size_t elementsInBuffer = PaUtil_GetRingBufferWriteAvailable(&pData->ringBuffer);

if (elementsInBuffer >= pData->ringBuffer.bufferSize / 4)
if (elementsInBuffer >= pData->ringBuffer.bufferSize / NUM_WRITES_PER_BUFFER)
{
void* ptr[2] = {0};
ring_buffer_size_t sizes[2] = {0};
Expand Down

0 comments on commit 0fd70db

Please sign in to comment.