pa_mac_core_blocking: Fix timeout.

Change alignment of comment.
This commit is contained in:
Phil Burk 2016-09-21 15:46:30 -07:00
commit a38df79293
5 changed files with 28 additions and 17 deletions

View file

@ -50,7 +50,7 @@
#include "portaudio.h"
#define SAMPLE_RATE (44100)
#define FRAMES_PER_BUFFER (4096)
#define FRAMES_PER_BUFFER (2048)
static float s_buffer[FRAMES_PER_BUFFER][2]; /* stereo output buffer */
@ -75,10 +75,11 @@ void *stop_thread_proc(void *arg)
PaTime time;
for (int i = 0; i < 20; i++)
{
/* ILLEGAL unsynchronised call to PA, see comment above */
time = Pa_GetStreamTime( stream );
printf("Stream time = %f\n", time);
fflush(stdout);
Pa_Sleep(100);
usleep(100 * 1000);
}
printf("Call Pa_StopStream()\n");
fflush(stdout);