Changeset 3539:1fd530767d7b in roaraudio for roarclients
- Timestamp:
- 02/20/10 00:48:43 (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roarclients
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/Makefile
r3343 r3539 47 47 $L 48 48 roarctl: roarctl.o 49 $L $( lib_m)49 $L $(LIBROARDSP) $(lib_m) 50 50 roarmon: roarmon.o 51 51 $L -
roarclients/roarctl.c
r3531 r3539 28 28 #include <roaraudio.h> 29 29 #include <roaraudio/units.h> 30 #include <libroardsp/libroardsp.h> 30 31 31 32 #if defined(ROAR_HAVE_SETGID) && defined(ROAR_HAVE_SETUID) … … 298 299 int num; 299 300 int id[ROAR_STREAMS_MAX]; 301 char chanmap[ROAR_MAX_CHANNELS]; 300 302 struct roar_stream s; 301 303 struct roar_stream_info info; 302 char flags[1024]; 303 char name[1024]; 304 char buffer[1024]; 305 char * flags = buffer; 306 char * name = buffer; 304 307 char * infotext; 308 size_t len; 305 309 306 310 … … 420 424 } 421 425 426 if ( g_verbose ) { 427 len = ROAR_MAX_CHANNELS; 428 if ( roar_stream_get_chanmap(con, &s, chanmap, &len) == -1 ) { 429 fprintf(stderr, "Error: can not get stream channel map\n"); 430 } else { 431 if ( roardsp_chanlist2str(chanmap, len, buffer, 1024) == -1 ) { 432 fprintf(stderr, "Error: can not convert channel map into string\n"); 433 } else { 434 printf("Channel Map : %s\n", buffer); 435 } 436 } 437 } 438 422 439 if ( s.dir != ROAR_DIR_THRU ) { 423 440 display_mixer(con, id[i]);
Note: See TracChangeset
for help on using the changeset viewer.