Changeset 3539:1fd530767d7b in roaraudio for roarclients


Ignore:
Timestamp:
02/20/10 00:48:43 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

support to read channel map from server

Location:
roarclients
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roarclients/Makefile

    r3343 r3539  
    4747        $L 
    4848roarctl: roarctl.o 
    49         $L $(lib_m) 
     49        $L $(LIBROARDSP) $(lib_m) 
    5050roarmon: roarmon.o 
    5151        $L 
  • roarclients/roarctl.c

    r3531 r3539  
    2828#include <roaraudio.h> 
    2929#include <roaraudio/units.h> 
     30#include <libroardsp/libroardsp.h> 
    3031 
    3132#if defined(ROAR_HAVE_SETGID) && defined(ROAR_HAVE_SETUID) 
     
    298299 int num; 
    299300 int id[ROAR_STREAMS_MAX]; 
     301 char chanmap[ROAR_MAX_CHANNELS]; 
    300302 struct roar_stream s; 
    301303 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; 
    304307 char * infotext; 
     308 size_t len; 
    305309 
    306310 
     
    420424  } 
    421425 
     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 
    422439  if ( s.dir != ROAR_DIR_THRU ) { 
    423440   display_mixer(con, id[i]); 
Note: See TracChangeset for help on using the changeset viewer.