You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
387 B
C
24 lines
387 B
C
3 years ago
|
#pragma once
|
||
|
|
||
3 years ago
|
#include "core/time.h"
|
||
|
|
||
|
namespace kku
|
||
|
{
|
||
3 years ago
|
|
||
|
struct BPMSection
|
||
|
{
|
||
3 years ago
|
unsigned int bpm = 120; // Hi, osu
|
||
|
unsigned int fraction = 2;
|
||
3 years ago
|
microsec offset_start = 0;
|
||
3 years ago
|
microsec interval = 0;
|
||
3 years ago
|
};
|
||
3 years ago
|
|
||
3 years ago
|
struct BPMSectionComparator
|
||
3 years ago
|
{
|
||
|
bool operator()(const BPMSection& lhs, const BPMSection& rhs) const noexcept
|
||
3 years ago
|
{
|
||
3 years ago
|
return lhs.offset_start < rhs.offset_start;
|
||
3 years ago
|
}
|
||
|
};
|
||
3 years ago
|
|
||
|
}
|