summaryrefslogtreecommitdiff
path: root/apps/pcmbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r--apps/pcmbuf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index 5ef517968a..ca17437534 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -1119,7 +1119,9 @@ void pcmbuf_fade(bool fade, bool in)
1119 if (fade) 1119 if (fade)
1120 { 1120 {
1121 /* Do this on thread for now */ 1121 /* Do this on thread for now */
1122#ifdef HAVE_PRIORITY_SCHEDULING
1122 int old_prio = thread_set_priority(thread_self(), PRIORITY_REALTIME); 1123 int old_prio = thread_set_priority(thread_self(), PRIORITY_REALTIME);
1124#endif
1123 1125
1124 while (1) 1126 while (1)
1125 { 1127 {
@@ -1140,7 +1142,9 @@ void pcmbuf_fade(bool fade, bool in)
1140 break; 1142 break;
1141 } 1143 }
1142 1144
1145#ifdef HAVE_PRIORITY_SCHEDULING
1143 thread_set_priority(thread_self(), old_prio); 1146 thread_set_priority(thread_self(), old_prio);
1147#endif
1144 } 1148 }
1145} 1149}
1146 1150