if (ioctl(pDevice->audio4.fd, AUDIO_GETINFO, &info) < 0) {
printf("ioctl failed.\n");
}
printf("MODE: %d\n", info.mode);
printf("PAUSED: %d\n", info.record.pause);
printf("EOF: %d\n", info.record.eof);
printf("SAMPELS: %d\n", info.record.samples);
printf("ERROR: %d\n", info.record.error);
printf("WAITING: %d\n", info.record.waiting);
printf("OPEN: %d\n", info.record.open);
printf("ACTIVE: %d\n", info.record.active);
#endif
if (errno == EAGAIN) {
break;
}
return mal_post_error(pDevice, MAL_LOG_LEVEL_ERROR, "[audio4] Failed to read data from the device to be sent to the client.", MAL_FAILED_TO_READ_DATA_FROM_DEVICE);