Changeset 465:82fd66e50dc3 in roaraudio for roarclients/roarctl.c


Ignore:
Timestamp:
08/12/08 15:37:57 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support to get the size of optimal read() and write()s

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarctl.c

    r449 r465  
    130130 int id[ROAR_STREAMS_MAX]; 
    131131 struct roar_stream s; 
     132 struct roar_stream_info info; 
    132133 
    133134 
     
    153154  printf("Input codec           : %i (%s%s)\n", s.info.codec, roar_codec2str(s.info.codec), 
    154155                                      s.info.codec == ROAR_CODEC_DEFAULT ? " native" : ""); 
     156  if ( roar_stream_get_info(con, &s, &info) != -1 ) { 
     157   printf("Input block size      : %i Byte\n", info.block_size); 
     158  } 
    155159  display_mixer(con, id[i]); 
    156160  show_meta_all(con, id[i]); 
Note: See TracChangeset for help on using the changeset viewer.