..
This commit is contained in:
parent
322f562fe8
commit
aecdea3d54
1 changed files with 8 additions and 4 deletions
12
DigestPlay.c
12
DigestPlay.c
|
@ -165,11 +165,12 @@ int main(int argc, char* argv[])
|
||||||
int handle;
|
int handle;
|
||||||
struct itimerspec interval;
|
struct itimerspec interval;
|
||||||
|
|
||||||
memset(&interval, 0, sizeof(struct itimerspec));
|
interval.it_interval.tv_sec = 0;
|
||||||
|
|
||||||
interval.it_interval.tv_sec = 0;
|
|
||||||
interval.it_interval.tv_nsec = TDMA_FRAME_DURATION * 1000000;
|
interval.it_interval.tv_nsec = TDMA_FRAME_DURATION * 1000000;
|
||||||
|
|
||||||
|
interval.it_value.tv_sec = interval.it_interval.tv_sec;
|
||||||
|
interval.it_value.tv_nsec = interval.it_interval.tv_nsec;
|
||||||
|
|
||||||
handle = timerfd_create(CLOCK_MONOTONIC, 0);
|
handle = timerfd_create(CLOCK_MONOTONIC, 0);
|
||||||
timerfd_settime(handle, 0, &interval, NULL);
|
timerfd_settime(handle, 0, &interval, NULL);
|
||||||
|
|
||||||
|
@ -204,10 +205,13 @@ int main(int argc, char* argv[])
|
||||||
|
|
||||||
if (pointer < limit)
|
if (pointer < limit)
|
||||||
{
|
{
|
||||||
printf("Input data stream stopped\n");
|
printf("Input data stream ended\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf("[> %d <]\r", count);
|
||||||
|
fflush(stdout);
|
||||||
|
|
||||||
// Convert to linear format
|
// Convert to linear format
|
||||||
|
|
||||||
buffer[0 * DSD_AMBE_CHUNK_SIZE + 7] <<= 7;
|
buffer[0 * DSD_AMBE_CHUNK_SIZE + 7] <<= 7;
|
||||||
|
|
Loading…
Add table
Reference in a new issue