File jack-celt-build-fix.diff of Package jack

---
 common/JackNetOneDriver.cpp |    6 +++---
 common/netjack_packet.c     |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

Index: common/netjack_packet.c
===================================================================
--- common/netjack_packet.c.orig	2010-08-30 12:23:53.000000000 +0200
+++ common/netjack_packet.c	2010-12-10 17:41:22.000000000 +0200
@@ -1428,9 +1428,9 @@ render_payload_to_jack_ports_celt (void
 
 	    CELTDecoder *decoder = src_node->data;
 	    if( !packet_payload )
-		celt_decode_float( decoder, NULL, net_period_down, buf );
+		celt_decode_float( decoder, NULL, net_period_down, buf, 1 );
 	    else
-		celt_decode_float( decoder, packet_bufX, net_period_down, buf );
+		celt_decode_float( decoder, packet_bufX, net_period_down, buf, 1 );
 
 	    src_node = jack_slist_next (src_node);
         }
@@ -1472,7 +1472,7 @@ render_jack_ports_to_payload_celt (JSLis
 	    float *floatbuf = alloca (sizeof(float) * nframes );
 	    memcpy( floatbuf, buf, nframes*sizeof(float) );
 	    CELTEncoder *encoder = src_node->data;
-	    encoded_bytes = celt_encode_float( encoder, floatbuf, NULL, packet_bufX, net_period_up );
+	    encoded_bytes = celt_encode_float( encoder, floatbuf, 1, packet_bufX, net_period_up );
 	    if( encoded_bytes != net_period_up )
 		printf( "something in celt changed. netjack needs to be changed to handle this.\n" );
 	    src_node = jack_slist_next( src_node );
Index: common/JackNetOneDriver.cpp
===================================================================
--- common/JackNetOneDriver.cpp.orig	2010-08-30 12:23:53.000000000 +0200
+++ common/JackNetOneDriver.cpp	2010-12-10 17:41:22.000000000 +0200
@@ -709,9 +709,9 @@ JackNetOneDriver::render_payload_to_jack
 
 	    CELTDecoder *decoder = (CELTDecoder *)src_node->data;
 	    if( !packet_payload )
-		celt_decode_float( decoder, NULL, net_period_down, buf );
+		celt_decode_float( decoder, NULL, net_period_down, buf, 1 );
 	    else
-		celt_decode_float( decoder, packet_bufX, net_period_down, buf );
+		celt_decode_float( decoder, packet_bufX, net_period_down, buf, 1 );
 
 	    src_node = jack_slist_next (src_node);
         }
@@ -757,7 +757,7 @@ JackNetOneDriver::render_jack_ports_to_p
 	    float *floatbuf = (float *)alloca (sizeof(float) * nframes );
 	    memcpy( floatbuf, buf, nframes*sizeof(float) );
 	    CELTEncoder *encoder = (CELTEncoder *)src_node->data;
-	    encoded_bytes = celt_encode_float( encoder, floatbuf, NULL, packet_bufX, net_period_up );
+	    encoded_bytes = celt_encode_float( encoder, floatbuf, 1, packet_bufX, net_period_up );
 	    if( encoded_bytes != (int)net_period_up )
 		jack_error( "something in celt changed. netjack needs to be changed to handle this." );
 	    src_node = jack_slist_next( src_node );
openSUSE Build Service is sponsored by