Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-07-09 22:09:10 +00:00 committed by StyleCI Bot
parent 9eda7c34e9
commit 91f43c5442
2 changed files with 3 additions and 5 deletions

View File

@ -108,7 +108,6 @@ class Logger
try {
\Threaded::extend('\danog\MadelineProto\VoIP');
} catch (\RuntimeException $e) {
}
}
self::$colors[self::ULTRA_VERBOSE] = implode(';', [self::foreground['light_gray'], self::set['dim']]);

View File

@ -97,8 +97,8 @@ trait AuthKeyHandler
while ($this->calls[$params['id']]['controller']->getState() !== \danog\MadelineProto\VoIP::STATE_ESTABLISHED);
while ($this->calls[$params['id']]['controller']->getOutputState() !== \danog\MadelineProto\VoIP::AUDIO_STATE_RUNNING);
$writePeriod = $this->calls[$params['id']]['controller']->getInputParams()["writePeriod"];
$samplesSize = $this->calls[$params['id']]['controller']->getInputParams()["samplesSize"];
$writePeriod = $this->calls[$params['id']]['controller']->getInputParams()['writePeriod'];
$samplesSize = $this->calls[$params['id']]['controller']->getInputParams()['samplesSize'];
var_dump('SENDING DAT');
$f = fopen('output.raw', 'r');
@ -107,12 +107,11 @@ trait AuthKeyHandler
usleep((int)
($writePeriod -
(microtime(true) - $time) // Time it took me to write frames
)
)
);
$time = microtime(true);
$this->calls[$params['id']]['controller']->writeSamples(stream_get_contents($f, $samplesSize));
}
$this->handle_pending_updates();
}