Changeset 2166:65339d91785c in roaraudio


Ignore:
Timestamp:
07/25/09 20:35:59 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use g_conf.samples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarphone.c

    r2162 r2166  
    4242struct { 
    4343 int antiecho; 
     44 int samples; 
    4445} g_conf; 
    4546 
     
    143144 ssize_t outlen, miclen; 
    144145 
    145  len = (info->rate / TIMEDIV) * info->channels * info->bits / 8; 
     146 len = g_conf.samples * info->bits / 8; 
    146147 
    147148 if ( (outbuf = malloc(2*len)) == NULL ) 
     
    228229 } 
    229230 
     231 g_conf.samples = info.channels * info.rate / TIMEDIV; 
     232 
    230233 if ( roar_cdriver_open(&dvio, driver, device, &info, ROAR_DIR_BIDIR) == -1 ) { 
    231234  return 1; 
Note: See TracChangeset for help on using the changeset viewer.