chore: Minor naming cleaning
This commit is contained in:
parent
9fdd65b9c8
commit
b1fae3873c
|
@ -23,7 +23,10 @@ class PrecisionEvaluator
|
|||
_end_handling_offset = _offset + intervals.back();
|
||||
}
|
||||
|
||||
inline microsec offset() const noexcept { return _offset; }
|
||||
inline microsec offset() const noexcept
|
||||
{
|
||||
return _offset;
|
||||
}
|
||||
|
||||
inline bool isActive(microsec music_play_offset) const noexcept
|
||||
{
|
||||
|
@ -35,9 +38,6 @@ class PrecisionEvaluator
|
|||
{
|
||||
microsec shift_from_perfect = std::abs(odds - offset());
|
||||
|
||||
std::cout << "Shift " << ((odds > _offset) ? "late: " : "early: ")
|
||||
<< shift_from_perfect << "\n";
|
||||
|
||||
std::size_t raw_grade;
|
||||
for (raw_grade = 0; raw_grade < _intervals.size(); ++raw_grade)
|
||||
{
|
||||
|
|
|
@ -35,7 +35,7 @@ class Log
|
|||
void log(LogLevel level, const std::string &fmt, ...);
|
||||
|
||||
private:
|
||||
inline std::string _getLabel(LogLevel level)
|
||||
inline std::string getLabel(LogLevel level)
|
||||
{
|
||||
switch (level)
|
||||
{
|
||||
|
|
|
@ -23,5 +23,5 @@ void Log::log(LogLevel level, const std::string &fmt, ...)
|
|||
std::vsnprintf(&buf[0], len + 1, fmt.c_str(), args);
|
||||
va_end(args);
|
||||
|
||||
std::cout << this->_getLabel(level) << " " << &buf[0] << std::endl;
|
||||
std::cout << this->getLabel(level) << " " << &buf[0] << std::endl;
|
||||
}
|
||||
|
|
|
@ -51,8 +51,8 @@ void ApplicationSFML::run()
|
|||
}
|
||||
}
|
||||
|
||||
bool isOneFramePassed = time_since_last_update >= TIME_PER_FRAME;
|
||||
if (isOneFramePassed)
|
||||
bool is_frame_passed = time_since_last_update >= TIME_PER_FRAME;
|
||||
if (is_frame_passed)
|
||||
{
|
||||
time_since_last_update -= TIME_PER_FRAME;
|
||||
update(time_since_last_update.asMicroseconds());
|
||||
|
|
Loading…
Reference in New Issue