Apply fixes from StyleCI
This commit is contained in:
parent
58d84020f1
commit
9f987353d5
@ -99,8 +99,8 @@ trait AuthKeyHandler
|
||||
$this->calls[$params['id']]['controller']->start();
|
||||
|
||||
$samplerate = 48000;
|
||||
$period = 1/$samplerate;
|
||||
$writePeriod = $period*960;
|
||||
$period = 1 / $samplerate;
|
||||
$writePeriod = $period * 960;
|
||||
var_dump($writePeriod);
|
||||
var_dump('SENDING DAT');
|
||||
$f = fopen('output.raw', 'r');
|
||||
@ -109,11 +109,11 @@ trait AuthKeyHandler
|
||||
usleep(
|
||||
($writePeriod -
|
||||
($time - microtime(true)) // Time it took me to write frames
|
||||
)*1000000
|
||||
) * 1000000
|
||||
);
|
||||
var_dump(($writePeriod -
|
||||
($time - microtime(true)) // Time it took me to write frames
|
||||
)*1000000);
|
||||
) * 1000000);
|
||||
$time = microtime(true);
|
||||
$this->calls[$params['id']]['controller']->writeFrames(stream_get_contents($f, 960));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user