Changeset 2166:65339d91785c in roaraudio
- Timestamp:
- 07/25/09 20:35:59 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/roarphone.c
r2162 r2166 42 42 struct { 43 43 int antiecho; 44 int samples; 44 45 } g_conf; 45 46 … … 143 144 ssize_t outlen, miclen; 144 145 145 len = (info->rate / TIMEDIV) * info->channels * info->bits / 8;146 len = g_conf.samples * info->bits / 8; 146 147 147 148 if ( (outbuf = malloc(2*len)) == NULL ) … … 228 229 } 229 230 231 g_conf.samples = info.channels * info.rate / TIMEDIV; 232 230 233 if ( roar_cdriver_open(&dvio, driver, device, &info, ROAR_DIR_BIDIR) == -1 ) { 231 234 return 1;
Note: See TracChangeset
for help on using the changeset viewer.