Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Something
Thursday, January 10th, 2008 at 1:45:02pm UTC 

  1. Index: apps/pcmbuf.c
  2. ===================================================================
  3. --- apps/pcmbuf.c       (révision 16047)
  4. +++ apps/pcmbuf.c       (copie de travail)
  5. @@ -37,6 +37,7 @@
  6.  #include "voice_thread.h"
  7.  #include "dsp.h"
  8.  #include "thread.h"
  9. +#include "buffering.h"
  10.  
  11.  /* Define PCMBUF_MUTING if the codec requires muting to prevent pops */
  12.  #if !defined(HAVE_UDA1380) && !defined(HAVE_TLV320) && !defined(HAVE_AS3514)
  13. @@ -261,12 +262,14 @@
  14.              codec_thread_priority = thread_set_priority(
  15.                  codec_thread_p, PRIORITY_REALTIME);
  16.              voice_thread_set_priority(PRIORITY_REALTIME);
  17. +            buffering_thread_set_priority(PRIORITY_REALTIME);
  18.          }
  19.      }
  20.      else if (codec_thread_priority != 0)
  21.      {
  22.          thread_set_priority(codec_thread_p, codec_thread_priority);
  23.          voice_thread_set_priority(codec_thread_priority);
  24. +        buffering_thread_set_priority(codec_thread_priority);
  25.          codec_thread_priority = 0;
  26.      }
  27.  }
  28. Index: apps/buffering.c
  29. ===================================================================
  30. --- apps/buffering.c    (révision 16047)
  31. +++ apps/buffering.c    (copie de travail)
  32. @@ -1478,6 +1478,14 @@
  33.      return true;
  34.  }
  35.  
  36. +#ifdef HAVE_PRIORITY_SCHEDULING
  37. +/* Set the buffering thread priority */
  38. +void buffering_thread_set_priority(int priority)
  39. +{
  40. +    thread_set_priority(buffering_thread_p, priority);
  41. +}
  42. +#endif
  43. +
  44.  void buffering_get_debugdata(struct buffering_debug *dbgdata)
  45.  {
  46.      update_data_counters();
  47. Index: apps/buffering.h
  48. ===================================================================
  49. --- apps/buffering.h    (révision 16047)
  50. +++ apps/buffering.h    (copie de travail)
  51. @@ -58,6 +58,10 @@
  52.  /* Reset the buffering system */
  53.  bool buffering_reset(char *buf, size_t buflen);
  54.  
  55. +#ifdef HAVE_PRIORITY_SCHEDULING
  56. +/* Set the buffering thread priority */
  57. +void buffering_thread_set_priority(int priority);
  58. +#endif
  59.  
  60.  /***************************************************************************
  61.   * MAIN BUFFERING API CALLS

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



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.

comments powered by Disqus
worth-right worth-right