[asterisk-dev] Choppy Audio with JACK (app_jack)

Russell Bryant russell at digium.com
Thu Oct 29 11:28:38 CDT 2009


Esben Stien wrote:
> russell at digium.com writes:
> 
>> I am traveling this weekend, but I will take a look when I get to a
>> computer.
> 
> Got a chance to look into this?

I just now got back to it.  Here is a quick hack to try:

Index: apps/app_jack.c
===================================================================
--- apps/app_jack.c     (revision 225171)
+++ apps/app_jack.c     (working copy)
@@ -515,7 +515,7 @@

 static int queue_voice_frame(struct jack_data *jack_data, struct
ast_frame *f)
 {
-       float f_buf[f->samples * 8];
+       float f_buf[f->samples * 12];
        size_t f_buf_used = 0;
        int i;
        int16_t *s_buf = f->data.ptr;


-- 
Russell Bryant
Digium, Inc. | Engineering Manager, Open Source Software
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list