if (!$GLOBALS['options']['keep_noise'] && !$GLOBALS['options']['ignore_noise'] && count($GLOBALS['analysis']['breakdown']) == 2 && isset($GLOBALS['analysis']['breakdown'][127]) && isset($GLOBALS['analysis']['breakdown'][128])) {
if ($GLOBALS['options']['analyze_input']) {
- //echo 'NOISE1!' . PHP_EOL;
+ //* NOISY: */ echo 'NOISE1!' . PHP_EOL;
}
return NULL;
} elseif (!$GLOBALS['options']['keep_noise'] && !$GLOBALS['options']['ignore_noise'] && count($GLOBALS['analysis']['breakdown']) == 1 && isset($GLOBALS['analysis']['breakdown'][127])) {
if ($GLOBALS['options']['analyze_input']) {
- //echo 'NOISE2!' . PHP_EOL;
+ //* NOISY: */ echo 'NOISE2!' . PHP_EOL;
}
return NULL;
} elseif (!$GLOBALS['options']['keep_noise'] && $GLOBALS['options']['ignore_noise'] && count($GLOBALS['analysis']['breakdown']) < 2) {
if ($GLOBALS['options']['analyze_input']) {
- //echo 'NOISE3!' . PHP_EOL;
+ //* NOISY: */ echo 'NOISE3!' . PHP_EOL;
}
return NULL;
}
$data = trim(fread($pcm, $GLOBALS['options']['buffer_size']));
if ((empty($data)) || ($data == $empty)) {
if ($GLOBALS['options']['analyze_input']) {
- //echo 'EMPTY!' . PHP_EOL;
+ //* NOISY: */ echo 'EMPTY!' . PHP_EOL;
}
continue;
}
if (empty($data)) {
// Skip this
continue;
- } // END - if
+ }
$GLOBALS['analysis']['average'] = floor($GLOBALS['analysis']['average'] / strlen($data));
if (empty($out)) {
// Skip this
continue;
- } // END - if
+ }
echo $out;
} else {