Changeset 5415:b0e383e49274 in roaraudio for roard
- Timestamp:
- 02/20/12 19:31:33 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/streams.c
r5381 r5415 2307 2307 int is_the_same = 1; 2308 2308 int is_vol_eq = 1; 2309 int is_muted; 2309 2310 int antiecho = 0; 2310 2311 ssize_t ret; … … 2391 2392 is_the_same = 0; 2392 2393 2393 if ( !streams_get_flag(id, ROAR_FLAG_HWMIXER) ) { 2394 is_muted = streams_get_flag(id, ROAR_FLAG_MUTE); 2395 2396 if ( !is_muted && !streams_get_flag(id, ROAR_FLAG_HWMIXER) ) { 2394 2397 is_vol_eq = need_vol_change(g_sa->channels, &(ss->mixer)) ? 0 : 1; 2395 2398 } … … 2398 2401 antiecho = 1; 2399 2402 2400 if ( !is_the_same || !is_vol_eq || antiecho ) {2403 if ( !is_the_same || !is_vol_eq || antiecho || is_muted ) { 2401 2404 olen = ROAR_OUTPUT_CALC_OUTBUFSIZE(&(s->info)); // we hope g_output_buffer_len 2402 2405 // is ROAR_OUTPUT_CALC_OUTBUFSIZE(g_sa) here … … 2433 2436 } 2434 2437 2438 ip = obuf; 2439 } 2440 2441 if ( is_muted ) { 2442 memset(obuf, 0, (g_sa->bits*ROAR_OUTPUT_BUFFER_SAMPLES*g_sa->channels)/8); 2435 2443 ip = obuf; 2436 2444 }
Note: See TracChangeset
for help on using the changeset viewer.