[xiph-commits] r18249 - icecast/trunk/ices/src

ph3-der-loewe at svn.xiph.org ph3-der-loewe at svn.xiph.org
Tue Apr 24 16:05:32 PDT 2012


Author: ph3-der-loewe
Date: 2012-04-24 16:05:32 -0700 (Tue, 24 Apr 2012)
New Revision: 18249

Modified:
   icecast/trunk/ices/src/im_roar.c
Log:
Added support to use a libroar audio info profile in addition to settin rate, channels and codec manually

Modified: icecast/trunk/ices/src/im_roar.c
===================================================================
--- icecast/trunk/ices/src/im_roar.c	2012-04-23 21:42:14 UTC (rev 18248)
+++ icecast/trunk/ices/src/im_roar.c	2012-04-24 23:05:32 UTC (rev 18249)
@@ -246,7 +246,12 @@
             s->info.channels = roar_str2channels(current->value);
         else if(!strcmp(current->name, "codec"))
             s->info.codec = roar_str2codec(current->value);
-        else if(!strcmp(current->name, "dir")) {
+        else if(!strcmp(current->name, "aiprofile")) {
+            if (roar_profile2info(&s->info, current->value) == -1) {
+                LOG_WARN2("Can not get audio info profile %s: %s", current->value, roar_error2str(roar_error));
+            }
+            s->info.bits = 16;
+        } else if(!strcmp(current->name, "dir")) {
             if ( !strcasecmp(current->value, "monitor") ) {
                 dir = ROAR_DIR_MONITOR;
             } else if ( !strcasecmp(current->value, "record") ) {



More information about the commits mailing list