minimodem CD tweaks

This commit is contained in:
Kamal Mostafa 2011-05-30 10:42:49 -07:00
parent fe52354af9
commit d74cb0eea0
1 changed files with 9 additions and 5 deletions

View File

@ -256,11 +256,15 @@ reprocess_audio:
/* Detect bfsk carrier */
int carrier_detect /*boolean*/ =
mag_mark + mag_space > CD_MIN_TONEMAG
&&
fabs(msdelta) > CD_MIN_MSDELTA_RATIO * MAX(mag_mark, mag_space)
// fabs(msdelta) > 0.4 * (mag_mark+mag_space)
// fabs(msdelta) > 0.1
1
&& mag_mark + mag_space > CD_MIN_TONEMAG
// && MIN(mag_mark, mag_space) < 0.30
// && MAX(mag_mark, mag_space) > 0.80
// && fabs(msdelta) > CD_MIN_MSDELTA_RATIO * MAX(mag_mark, mag_space)
&& fabs(msdelta) > 0.2 * (mag_mark+mag_space)
// && fabs(msdelta) > 0.5
;
#ifdef TRICK