Index: apps/pcmbuf.c =================================================================== --- apps/pcmbuf.c (révision 16047) +++ apps/pcmbuf.c (copie de travail) @@ -37,6 +37,7 @@ #include "voice_thread.h" #include "dsp.h" #include "thread.h" +#include "buffering.h" /* Define PCMBUF_MUTING if the codec requires muting to prevent pops */ #if !defined(HAVE_UDA1380) && !defined(HAVE_TLV320) && !defined(HAVE_AS3514) @@ -261,12 +262,14 @@ codec_thread_priority = thread_set_priority( codec_thread_p, PRIORITY_REALTIME); voice_thread_set_priority(PRIORITY_REALTIME); + buffering_thread_set_priority(PRIORITY_REALTIME); } } else if (codec_thread_priority != 0) { thread_set_priority(codec_thread_p, codec_thread_priority); voice_thread_set_priority(codec_thread_priority); + buffering_thread_set_priority(codec_thread_priority); codec_thread_priority = 0; } } Index: apps/buffering.c =================================================================== --- apps/buffering.c (révision 16047) +++ apps/buffering.c (copie de travail) @@ -1478,6 +1478,14 @@ return true; } +#ifdef HAVE_PRIORITY_SCHEDULING +/* Set the buffering thread priority */ +void buffering_thread_set_priority(int priority) +{ + thread_set_priority(buffering_thread_p, priority); +} +#endif + void buffering_get_debugdata(struct buffering_debug *dbgdata) { update_data_counters(); Index: apps/buffering.h =================================================================== --- apps/buffering.h (révision 16047) +++ apps/buffering.h (copie de travail) @@ -58,6 +58,10 @@ /* Reset the buffering system */ bool buffering_reset(char *buf, size_t buflen); +#ifdef HAVE_PRIORITY_SCHEDULING +/* Set the buffering thread priority */ +void buffering_thread_set_priority(int priority); +#endif /*************************************************************************** * MAIN BUFFERING API CALLS