Changeset 112:a203893a0b27 in roaraudio for roarclients/roarctl.c
- Timestamp:
- 07/13/08 04:22:42 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/roarctl.c
r109 r112 4 4 5 5 int display_mixer (struct roar_connection * con, int stream); 6 int show_meta_all (struct roar_connection * con, int id); 6 7 7 8 void usage (void) { … … 117 118 s.info.codec == ROAR_CODEC_DEFAULT ? " native" : ""); 118 119 display_mixer(con, id[i]); 120 show_meta_all(con, id[i]); 119 121 } 120 122 … … 262 264 return -1; 263 265 264 printf("Meta % s: %s\n", roar_meta_strtype(meta.type), meta.value);266 printf("Meta %-17s: %s\n", roar_meta_strtype(meta.type), meta.value); 265 267 266 268 roar_meta_free(&meta); 269 270 return 0; 271 } 272 273 int show_meta_all (struct roar_connection * con, int id) { 274 struct roar_stream s; 275 int types[ROAR_META_MAX_PER_STREAM]; 276 int i; 277 int len; 278 279 s.id = id; 280 281 if ( (len = roar_stream_meta_list(con, &s, types, ROAR_META_MAX_PER_STREAM)) == -1 ) 282 return -1; 283 284 for (i = 0; i < len; i++) 285 show_meta_type(con, id, roar_meta_strtype(types[i])); 267 286 268 287 return 0;
Note: See TracChangeset
for help on using the changeset viewer.