- chase celt library bump
This commit is contained in:
parent
83c6c2647b
commit
afb5d0b5f2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=272602
6 changed files with 56 additions and 14 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= jackit
|
PORTNAME= jackit
|
||||||
PORTVERSION= 0.118.0
|
PORTVERSION= 0.118.0
|
||||||
PORTREVISION= 3
|
PORTREVISION= 4
|
||||||
CATEGORIES= audio
|
CATEGORIES= audio
|
||||||
MASTER_SITES= http://jackaudio.org/downloads/
|
MASTER_SITES= http://jackaudio.org/downloads/
|
||||||
DISTNAME= jack-audio-connection-kit-${PORTVERSION}
|
DISTNAME= jack-audio-connection-kit-${PORTVERSION}
|
||||||
|
@ -18,7 +18,7 @@ COMMENT= A low-latency audio server
|
||||||
LIB_DEPENDS= portaudio.0:${PORTSDIR}/audio/portaudio \
|
LIB_DEPENDS= portaudio.0:${PORTSDIR}/audio/portaudio \
|
||||||
sndfile.1:${PORTSDIR}/audio/libsndfile \
|
sndfile.1:${PORTSDIR}/audio/libsndfile \
|
||||||
samplerate.1:${PORTSDIR}/audio/libsamplerate \
|
samplerate.1:${PORTSDIR}/audio/libsamplerate \
|
||||||
celt.0:${PORTSDIR}/audio/celt
|
celt0.2:${PORTSDIR}/audio/celt
|
||||||
|
|
||||||
LATEST_LINK= jack
|
LATEST_LINK= jack
|
||||||
CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}" LDFLAGS="-L${LOCALBASE}/lib" \
|
CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}" LDFLAGS="-L${LOCALBASE}/lib" \
|
||||||
|
|
23
audio/jack/files/patch-drivers__netjack__netjack_packet.c
Normal file
23
audio/jack/files/patch-drivers__netjack__netjack_packet.c
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
--- ./drivers/netjack/netjack_packet.c.orig 2009-11-12 22:09:39.000000000 +0100
|
||||||
|
+++ ./drivers/netjack/netjack_packet.c 2011-04-12 11:31:54.221162522 +0200
|
||||||
|
@@ -1427,9 +1427,9 @@
|
||||||
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
@@ -1471,7 +1471,7 @@
|
||||||
|
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 );
|
|
@ -7,14 +7,14 @@
|
||||||
|
|
||||||
PORTNAME= mangler
|
PORTNAME= mangler
|
||||||
PORTVERSION= 1.2.1
|
PORTVERSION= 1.2.1
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= audio
|
CATEGORIES= audio
|
||||||
MASTER_SITES= http://www.mangler.org/downloads/
|
MASTER_SITES= http://www.mangler.org/downloads/
|
||||||
|
|
||||||
MAINTAINER= janik@hikarihq.com
|
MAINTAINER= janik@hikarihq.com
|
||||||
COMMENT= A Ventrilo VOIP combatible client
|
COMMENT= A Ventrilo VOIP combatible client
|
||||||
|
|
||||||
LIB_DEPENDS= celt.0:${PORTSDIR}/audio/celt \
|
LIB_DEPENDS= celt0.2:${PORTSDIR}/audio/celt \
|
||||||
speex.1:${PORTSDIR}/audio/speex \
|
speex.1:${PORTSDIR}/audio/speex \
|
||||||
dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \
|
dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \
|
||||||
gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24 \
|
gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24 \
|
||||||
|
|
|
@ -61,7 +61,7 @@ PLIST_SUB+= BUNDLECELT=""
|
||||||
.else
|
.else
|
||||||
CONFIG+= no-bundled-celt
|
CONFIG+= no-bundled-celt
|
||||||
PLIST_SUB+= BUNDLECELT="@comment "
|
PLIST_SUB+= BUNDLECELT="@comment "
|
||||||
LIB_DEPENDS+= celt.0:${PORTSDIR}/audio/celt
|
LIB_DEPENDS+= celt0.2:${PORTSDIR}/audio/celt
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITHOUT_BONJOUR)
|
.if defined(WITHOUT_BONJOUR)
|
||||||
|
@ -79,6 +79,10 @@ PLIST_SUB+= MUMBLE11X=""
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's|-ldl||' ${WRKSRC}/overlay_gl/overlay_gl.pro
|
@${REINPLACE_CMD} -e 's|-ldl||' ${WRKSRC}/overlay_gl/overlay_gl.pro
|
||||||
|
# Fix with celt 0.11
|
||||||
|
.if !defined(WITHOUT_SYSCELT)
|
||||||
|
@${REINPLACE_CMD} -e 's/CELT_SET_VBR_RATE/CELT_SET_BITRATE/g' ${WRKSRC}/src/mumble/AudioInput.cpp
|
||||||
|
.endif
|
||||||
|
|
||||||
do-configure:
|
do-configure:
|
||||||
.if defined(WITHOUT_SYSCELT)
|
.if defined(WITHOUT_SYSCELT)
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= opal3
|
PORTNAME= opal3
|
||||||
PORTVERSION= 3.6.6
|
PORTVERSION= 3.6.6
|
||||||
PORTREVISION= 10
|
PORTREVISION= 11
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
MASTER_SITES= SF/opalvoip/v3.6%20Lalande/Stable%205
|
MASTER_SITES= SF/opalvoip/v3.6%20Lalande/Stable%205
|
||||||
DISTNAME= opal-${PORTVERSION}
|
DISTNAME= opal-${PORTVERSION}
|
||||||
|
@ -98,7 +98,7 @@ CONFIGURE_ARGS+= --disable-java
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITH_CELT)
|
.if defined(WITH_CELT)
|
||||||
LIB_DEPENDS+= celt.0:${PORTSDIR}/audio/celt
|
LIB_DEPENDS+= celt0.2:${PORTSDIR}/audio/celt
|
||||||
CONFIGURE_ARGS+= --enable-celt
|
CONFIGURE_ARGS+= --enable-celt
|
||||||
PLIST_SUB+= CELT=""
|
PLIST_SUB+= CELT=""
|
||||||
.else
|
.else
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- plugins/audio/celt/celtcodec.c.orig 2009-09-22 02:57:45.000000000 +0200
|
--- ./plugins/audio/celt/celtcodec.c.orig 2009-09-22 02:57:45.000000000 +0200
|
||||||
+++ plugins/audio/celt/celtcodec.c 2009-11-13 22:00:39.000000000 +0100
|
+++ ./plugins/audio/celt/celtcodec.c 2011-04-12 12:26:00.485668577 +0200
|
||||||
@@ -52,7 +52,7 @@ static int init_mode(CELTContext *celt,
|
@@ -52,12 +52,12 @@
|
||||||
{
|
{
|
||||||
int error = 0;
|
int error = 0;
|
||||||
|
|
||||||
|
@ -9,7 +9,13 @@
|
||||||
if (celt->mode == NULL) {
|
if (celt->mode == NULL) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@@ -74,7 +74,7 @@ static void * celt_create_encoder(const
|
|
||||||
|
- celt_mode_info(celt->mode, CELT_GET_FRAME_SIZE, &celt->frame_size);
|
||||||
|
+ celt->frame_size = 960; /* default from tools/celtenc.c */
|
||||||
|
celt->bytes_per_packet = (codec->bitsPerSec * celt->frame_size/codec->sampleRate + 4) / 8;
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
@@ -74,7 +74,7 @@
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +24,7 @@
|
||||||
if (celt->encoder_state == NULL ) {
|
if (celt->encoder_state == NULL ) {
|
||||||
celt_mode_destroy(celt->mode);
|
celt_mode_destroy(celt->mode);
|
||||||
free(celt);
|
free(celt);
|
||||||
@@ -96,7 +96,7 @@ static void * celt_create_decoder(const
|
@@ -96,7 +96,7 @@
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,15 +33,24 @@
|
||||||
if (celt->decoder_state == NULL ) {
|
if (celt->decoder_state == NULL ) {
|
||||||
celt_mode_destroy(celt->mode);
|
celt_mode_destroy(celt->mode);
|
||||||
free(celt);
|
free(celt);
|
||||||
@@ -143,9 +143,9 @@ static int celt_codec_encoder(const stru
|
@@ -143,9 +143,9 @@
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
#ifdef HAVE_CELT_0_5_0_OR_LATER
|
#ifdef HAVE_CELT_0_5_0_OR_LATER
|
||||||
- byteCount = celt_encode(celt->encoder_state, (celt_int16_t *)fromPtr, NULL, (char *)toPtr, celt->bytes_per_packet);
|
- byteCount = celt_encode(celt->encoder_state, (celt_int16_t *)fromPtr, NULL, (char *)toPtr, celt->bytes_per_packet);
|
||||||
+ byteCount = celt_encode(celt->encoder_state, (celt_int16 *)fromPtr, NULL, (char *)toPtr, celt->bytes_per_packet);
|
+ byteCount = celt_encode(celt->encoder_state, (celt_int16 *)fromPtr, celt->frame_size, (char *)toPtr, celt->bytes_per_packet);
|
||||||
#else
|
#else
|
||||||
- byteCount = celt_encode(celt->encoder_state, (celt_int16_t *)fromPtr, (char *)toPtr, celt->bytes_per_packet);
|
- byteCount = celt_encode(celt->encoder_state, (celt_int16_t *)fromPtr, (char *)toPtr, celt->bytes_per_packet);
|
||||||
+ byteCount = celt_encode(celt->encoder_state, (celt_int16 *)fromPtr, (char *)toPtr, celt->bytes_per_packet);
|
+ byteCount = celt_encode(celt->encoder_state, (celt_int16 *)fromPtr, (char *)toPtr, celt->bytes_per_packet);
|
||||||
#endif
|
#endif
|
||||||
if (byteCount < 0) {
|
if (byteCount < 0) {
|
||||||
return 0;
|
return 0;
|
||||||
|
@@ -173,7 +173,7 @@
|
||||||
|
if (*fromLen == 0)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
- if (celt_decode(celt->decoder_state, (char *)fromPtr, *fromLen, (short *)toPtr) < 0) {
|
||||||
|
+ if (celt_decode(celt->decoder_state, (char *)fromPtr, *fromLen, (short *)toPtr, celt->frame_size) < 0) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue