Skip to content

Commit

Permalink
Added c macro for MacOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
hurrhnn committed Aug 15, 2021
1 parent dacc724 commit 25c3424
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ra_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,12 @@ void *provide_20ms_opus_timer() {

while (!is_EOS) {
before = after;
#if __APPLE__
after.tv_usec += 13500;
#else
after.tv_usec += 19900;
#endif

after.tv_usec += 19900;
timespec.tv_nsec = (after.tv_usec - before.tv_usec) * 1000;
nanosleep(&timespec, NULL);
pthread_cond_signal(&opus_builder_cond);
Expand Down

0 comments on commit 25c3424

Please sign in to comment.