Advertising
- Something
- Thursday, January 10th, 2008 at 6:45:02am MST
- 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
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.