else {
--input_buffer_count;
printf("AudioDevice::run_input: buffer overflow\n");
+ result = 1;
}
ibfr = &input[input_buffer_in];
ibfr->size = 0;
buffer_lock->unlock();
polling_lock->unlock();
}
- else {
+ if( result ) {
perror("AudioDevice::run_input");
usleep(250000);
}