Changeset 2485:1cbb82cde915 in roaraudio
- Timestamp:
- 08/23/09 21:31:33 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/roard.c
r2451 r2485 86 86 printf(" -oP - Mark output as primary\n"); 87 87 88 #ifndef ROAR_WITHOUT_DCOMP_SOURCES 88 89 printf("\nSource Options:\n\n"); 89 90 printf(" -s --source DRV - Use DRV as input driver\n" … … 94 95 ); 95 96 printf(" --list-sources - List all sources\n"); 97 #endif 96 98 97 99 printf("\nCodec Filter Options:\n\n"); … … 732 734 } 733 735 736 #ifndef ROAR_WITHOUT_DCOMP_SOURCES 734 737 if ( sources_init() == -1 ) { 735 738 ROAR_ERR("Can not init sources!"); … … 741 744 return 1; 742 745 } 746 #endif 743 747 744 748 #ifdef ROAR_HAVE_MAIN_ARGS … … 873 877 874 878 } else if ( strcmp(k, "-s") == 0 || strcmp(k, "--source") == 0 ) { 879 #ifndef ROAR_WITHOUT_DCOMP_SOURCES 875 880 s_drv = argv[++i]; 881 #else 882 ROAR_ERR("main(*): No support for sources compiled in"); 883 #endif 876 884 } else if ( strcmp(k, "-S") == 0 ) { 885 #ifndef ROAR_WITHOUT_DCOMP_SOURCES 877 886 s_dev = argv[++i]; 887 #else 888 ROAR_ERR("main(*): No support for sources compiled in"); 889 #endif 878 890 } else if ( strcmp(k, "-sO") == 0 ) { 891 #ifndef ROAR_WITHOUT_DCOMP_SOURCES 879 892 s_opt = argv[++i]; 893 #else 894 ROAR_ERR("main(*): No support for sources compiled in"); 895 #endif 880 896 } else if ( strcmp(k, "-sC") == 0 ) { 897 #ifndef ROAR_WITHOUT_DCOMP_SOURCES 881 898 s_con = argv[++i]; 899 #else 900 ROAR_ERR("main(*): No support for sources compiled in"); 901 #endif 882 902 } else if ( strcmp(k, "-sP") == 0 ) { 903 #ifndef ROAR_WITHOUT_DCOMP_SOURCES 883 904 s_prim = 1; 905 #else 906 ROAR_ERR("main(*): No support for sources compiled in"); 907 #endif 884 908 } else if ( strcmp(k, "-sN") == 0 ) { 909 #ifndef ROAR_WITHOUT_DCOMP_SOURCES 885 910 if ( sources_add(s_drv, s_dev, s_con, s_opt, s_prim) == -1 ) { 886 911 ROAR_ERR("main(*): adding source '%s' via '%s' failed!", s_dev, s_drv); … … 889 914 s_drv = "cf"; 890 915 s_prim = 0; 916 #else 917 ROAR_ERR("main(*): No support for sources compiled in"); 918 #endif 891 919 } else if ( strcmp(k, "--list-sources") == 0 ) { 920 #ifndef ROAR_WITHOUT_DCOMP_SOURCES 892 921 print_sourcelist(); 893 922 return 0; 923 #else 924 ROAR_ERR("main(*): No support for sources compiled in"); 925 #endif 894 926 895 927 } else if ( strcmp(k, "--light-channels") == 0 ) { … … 1027 1059 #endif 1028 1060 1061 #ifndef ROAR_WITHOUT_DCOMP_SOURCES 1029 1062 if ( s_dev != NULL ) { 1030 1063 if ( sources_add(s_drv, s_dev, s_con, s_opt, s_prim) == -1 ) { … … 1032 1065 } 1033 1066 } 1067 #endif 1034 1068 1035 1069 add_output(o_drv, o_dev, o_opts, o_prim, o_count); … … 1295 1329 cleanup_listen_socket(0); 1296 1330 1331 #ifndef ROAR_WITHOUT_DCOMP_SOURCES 1297 1332 sources_free(); 1333 #endif 1298 1334 streams_free(); 1299 1335 clients_free(); -
roard/sources.c
r2290 r2485 25 25 #include "roard.h" 26 26 27 #ifndef ROAR_WITHOUT_DCOMP_SOURCES 28 27 29 struct roar_source g_source[] = { 28 30 {"raw", "Raw source", "/some/file", SRC_FLAG_FHSEC, ROAR_SUBSYS_WAVEFORM, NULL, sources_add_raw}, … … 440 442 } 441 443 444 #endif 445 442 446 //ll
Note: See TracChangeset
for help on using the changeset viewer.