- first primitive type added, more will follow
Signed-off-by: Roland Häder <roland@mxchange.org>
}
//$pcm = fopen('output1.pcm', 'rb') or die('Cannot read from audio');
-$pcm = fopen('/dev/dsp2', 'rb') or die('Cannot read from audio' . PHP_EOL);
+$pcm = fopen('/dev/dsp', 'rb') or die('Cannot read from audio' . PHP_EOL);
$empty = str_repeat(chr(128), $GLOBALS['options']['buffer_size']);
* @param $isValid Whether the request is valid
* @return void
*/
- public final function requestIsValid ($isValid = true) {
- $this->requestIsValid = (bool) $isValid;
+ public final function requestIsValid (bool $isValid = true) {
+ $this->requestIsValid = $isValid;
}
/**
* @param $isValid Whether the request is valid
* @return void
*/
- function requestIsValid ($isValid = true);
+ function requestIsValid (bool $isValid = true);
/**
* Returns whether this request is valid