openbsd-ports/audio/jack/patches/patch-tools_netsource_c
dcoppa 5e98afa5bd Fix after celt update
ok ajacoutot@
2012-04-20 13:28:50 +00:00

25 lines
1.5 KiB
Plaintext

$OpenBSD: patch-tools_netsource_c,v 1.6 2012/04/20 13:28:50 dcoppa Exp $
Fix with celt>=0.11
--- tools/netsource.c.orig Wed Apr 18 13:06:08 2012
+++ tools/netsource.c Wed Apr 18 13:06:50 2012
@@ -139,7 +139,7 @@ alloc_ports (int n_capture_audio, int n_playback_audio
#if HAVE_CELT
#if HAVE_CELT_API_0_7 || HAVE_CELT_API_0_8
CELTMode *celt_mode = celt_mode_create( jack_get_sample_rate( client ), jack_get_buffer_size(client), NULL );
- capture_srcs = jack_slist_append(capture_srcs, celt_decoder_create( celt_mode, 1, NULL ) );
+ capture_srcs = jack_slist_append(capture_srcs, celt_decoder_create_custom( celt_mode, 1, NULL ) );
#else
CELTMode *celt_mode = celt_mode_create( jack_get_sample_rate( client ), 1, jack_get_buffer_size(client), NULL );
capture_srcs = jack_slist_append(capture_srcs, celt_decoder_create( celt_mode ) );
@@ -182,7 +182,7 @@ alloc_ports (int n_capture_audio, int n_playback_audio
#if HAVE_CELT
#if HAVE_CELT_API_0_7 || HAVE_CELT_API_0_8
CELTMode *celt_mode = celt_mode_create( jack_get_sample_rate (client), jack_get_buffer_size(client), NULL );
- playback_srcs = jack_slist_append(playback_srcs, celt_encoder_create( celt_mode, 1, NULL ) );
+ playback_srcs = jack_slist_append(playback_srcs, celt_encoder_create_custom( celt_mode, 1, NULL ) );
#else
CELTMode *celt_mode = celt_mode_create( jack_get_sample_rate (client), 1, jack_get_buffer_size(client), NULL );
playback_srcs = jack_slist_append(playback_srcs, celt_encoder_create( celt_mode ) );