Changeset 2155:ad48aa7dd72c in roaraudio


Ignore:
Timestamp:
07/24/09 23:06:46 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

started support for antiecho flag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r2153 r2155  
    12281228 struct roar_stream_server *  ss; 
    12291229 struct roar_buffer        *  bufbuf = NULL; 
     1230 struct roar_remove_state     removalstate; 
    12301231 void  * ip; 
    12311232 void  * obuf; 
     
    12331234 int     is_the_same     = 1; 
    12341235 int     is_vol_eq       = 1; 
     1236 int     antiecho        = 0; 
    12351237 ssize_t ret; 
    12361238 
     
    12831285 } 
    12841286 
    1285  if ( !is_the_same || !is_vol_eq ) { 
     1287 if ( streams_get_flag(id, ROAR_FLAG_ANTIECHO) ) 
     1288  antiecho = 1; 
     1289 
     1290 if ( !is_the_same || !is_vol_eq || antiecho ) { 
    12861291  olen = ROAR_OUTPUT_CALC_OUTBUFSIZE(&(s->info)); // we hope g_output_buffer_len 
    12871292                                                  // is ROAR_OUTPUT_CALC_OUTBUFSIZE(g_sa) here 
     
    13001305 
    13011306 ip = g_output_buffer; 
     1307 
     1308 if ( antiecho ) { 
     1309  if ( roar_remove_init(&removalstate) == -1 ) 
     1310   _return(-1); 
     1311 } 
    13021312 
    13031313 if ( !is_vol_eq ) { 
Note: See TracChangeset for help on using the changeset viewer.