# $FreeBSD$
PORTNAME= darkice
PORTVERSION= 1.3
PORTVERSION= 1.4
PORTREVISION= 2
CATEGORIES= audio net
MASTER_SITES= SF
MASTER_SITES= https://github.com/rafael2k/darkice/releases/download/v${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= IceCast, IceCast2, and ShoutCast live audio streamer
TIMESTAMP = 1475029544
TIMESTAMP = 1592166243
SHA256 (darkice-1.3.tar.gz) = 2c0d0faaa627c0273b2ce8b38775a73ef97e34ef866862a398f660ad8f6e9de6
SHA256 (darkice-1.4.tar.gz) = e6a8ec2b447cf5b4ffaf9b62700502b6bdacebf00b476f4e9bf9f9fe1e3dd817
SIZE (darkice-1.3.tar.gz) = 371411
SIZE (darkice-1.4.tar.gz) = 364782
--- darkice.cfg
+++ darkice.cfg
@@ -26,7 +26,9 @@ bitrate = 96 # bitrate of the stream sent to the server
server = yp.yourserver.com
# host name of the server
port = 8000 # port of the IceCast2 server, usually 8000
-password = hackme # source password to the IceCast2 server
+# source password to the IceCast2 server
+password = hackme
+# there must not be a comment following the password
mountPoint = sample96 # mount point of this stream on the IceCast2 server
name = DarkIce trial
# name of the stream
--- src/FaacEncoder.cpp.orig 2015-05-18 17:38:07 UTC
+++ src/FaacEncoder.cpp
@@ -95,7 +95,9 @@ FaacEncoder :: open ( void )
faacConfig->useTns = 1;
faacConfig->shortctl = SHORTCTL_NORMAL;
faacConfig->useLfe = 0;
- faacConfig->allowMidside = 1;
+ //Do not set allowMidside for API compatibility with faac,
+ //see https://github.com/knik0/faac/issues/8 for details
+ //faacConfig->allowMidside = 1;
faacConfig->bitRate = getOutBitrate() * 1000 / getOutChannel();
faacConfig->bandWidth = lowpass;
faacConfig->quantqual = (unsigned long) (getOutQuality() * 1000.0);