Subversion Repositories svnkaklik

Rev

Rev 623 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 623 Rev 640
Line 311... Line 311...
311
    if (err < 0)
311
    if (err < 0)
312
    {
312
    {
313
        printf("Start error: %s\n", snd_strerror(err));
313
        printf("Start error: %s\n", snd_strerror(err));
314
        exit(EXIT_FAILURE);
314
        exit(EXIT_FAILURE);
315
    }
315
    }
316
    else printf("Waiting for transmitt all samples\n");
316
    else printf("Transmitting all samples of chirp\n");
317
//--------------
317
//--------------
318
 
318
 
319
    while ( snd_pcm_avail_update(capture_handle) < period_size)			// wait for one period of data
319
    while ( snd_pcm_avail_update(capture_handle) < period_size)			// wait for one period of data
320
    {
320
    {
321
        usleep(1000);
321
        usleep(1000);