mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
19 lines
454 B
Diff
19 lines
454 B
Diff
--- a/PLUGINS/src/softhddevice/audio.c
|
|
+++ b/PLUGINS/src/softhddevice/audio.c
|
|
@@ -48,6 +48,7 @@
|
|
#include <inttypes.h>
|
|
#include <string.h>
|
|
#include <math.h>
|
|
+#include <sched.h>
|
|
|
|
#include <libintl.h>
|
|
#define _(str) gettext(str) ///< gettext shortcut
|
|
@@ -1584,7 +1585,7 @@
|
|
if (err < 0) { // underrun error
|
|
return -1;
|
|
}
|
|
- pthread_yield();
|
|
+ sched_yield();
|
|
usleep(OssFragmentTime * 1000); // let fill/empty the buffers
|
|
return 0;
|
|
}
|