Changeset 981:892b34984ecd in roaraudio


Ignore:
Timestamp:
12/17/08 21:13:21 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added fc object to ss object, not used yet, update pos on monetoring/output streams

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r971 r981  
    9797   s->driver_id = -1; 
    9898 
     99   roardsp_fchain_init(&(s->fc)); 
     100 
    99101   g_streams[i] = s; 
    100102   ROAR_DBG("streams_new(void): n->id=%i", n->id); 
     
    128130  s->driver_id = -1; 
    129131 } 
     132 
     133 roardsp_fchain_uninit(&(s->fc)); 
    130134 
    131135 if ( s->client != -1 ) { 
     
    730734  if ( stream_vio_s_write(ss, obuf, olen) == olen ) { 
    731735   if ( need_to_free ) free(obuf); 
     736   s->pos = ROAR_MATH_OVERFLOW_ADD(s->pos, ROAR_OUTPUT_CALC_OUTBUFSAMP(&(s->info), olen)*s->info.channels); 
    732737   return 0; 
    733738  } 
     
    736741            == olen ) { 
    737742   if ( need_to_free ) free(obuf); 
     743   s->pos = ROAR_MATH_OVERFLOW_ADD(s->pos, ROAR_OUTPUT_CALC_OUTBUFSAMP(&(s->info), olen)*s->info.channels); 
    738744   return 0; 
    739745  } else { // we cann't retry on codec filetered streams 
     
    752758  if ( stream_vio_s_write(ss, obuf, olen) == olen ) { 
    753759   if ( need_to_free ) free(obuf); 
     760   s->pos = ROAR_MATH_OVERFLOW_ADD(s->pos, ROAR_OUTPUT_CALC_OUTBUFSAMP(&(s->info), olen)*s->info.channels); 
    754761   return 0; 
    755762  } 
Note: See TracChangeset for help on using the changeset viewer.