Changeset 964:0a0e4e32d700 in roaraudio


Ignore:
Timestamp:
12/09/08 17:16:35 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support for roarctl to show position info

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libroar/stream.c

    r963 r964  
    318318 roar_debug_audio_info_print(&s->info); 
    319319 
     320 m->pos = s->pos; 
     321 
    320322 return 0; 
    321323} 
     
    329331 if ( m->datalen != _ROAR_STREAM_MESSAGE_LEN ) 
    330332  return -1; 
     333 
     334 s->pos = m->pos; 
    331335 
    332336 data = (uint32_t*) m->data; 
  • roarclients/roarctl.c

    r963 r964  
    177177  else 
    178178   printf("Relativ position id   : %i\n", s.pos_rel_id); 
     179  if ( g_verbose > 1 ) 
     180   printf("Position              : %lu S (%.3fs)\n", (unsigned long int) s.pos, (float)s.pos/(s.info.rate*s.info.channels)); 
    179181  printf("Input rate            : %i\n", s.info.rate); 
    180182  printf("Input bits            : %i\n", s.info.bits); 
  • roard/req.c

    r963 r964  
    309309//ROAR_DIR_OUTPUT 
    310310 
     311 memset(s, 0, sizeof(struct roar_stream)); 
     312 
    311313 s.dir           = ROAR_DIR_OUTPUT; 
    312314 s.pos_rel_id    = -1; 
     
    486488 } 
    487489 
     490 mes->pos = s->pos; 
     491 
    488492 mes->cmd = ROAR_CMD_OK; 
    489493 return 0; 
Note: See TracChangeset for help on using the changeset viewer.