2021-10-05 20:48:28 +02:00
|
|
|
#pragma once
|
|
|
|
|
2021-12-29 15:59:18 +01:00
|
|
|
#include "core/time.h"
|
|
|
|
|
|
|
|
namespace kku
|
|
|
|
{
|
2021-10-05 20:48:28 +02:00
|
|
|
|
|
|
|
struct BPMSection
|
|
|
|
{
|
2021-12-29 15:59:18 +01:00
|
|
|
unsigned int bpm = 120; // Hi, osu
|
|
|
|
unsigned int fraction = 2;
|
2021-10-05 20:48:28 +02:00
|
|
|
microsec offset_start = 0;
|
2021-12-09 08:55:53 +01:00
|
|
|
microsec interval = 0;
|
2021-11-02 18:03:27 +01:00
|
|
|
};
|
2021-10-05 20:48:28 +02:00
|
|
|
|
2021-12-29 15:59:18 +01:00
|
|
|
struct BPMSectionComparator
|
2021-11-02 18:03:27 +01:00
|
|
|
{
|
|
|
|
bool operator()(const BPMSection& lhs, const BPMSection& rhs) const noexcept
|
2021-10-05 20:48:28 +02:00
|
|
|
{
|
2021-11-02 18:03:27 +01:00
|
|
|
return lhs.offset_start < rhs.offset_start;
|
2021-10-05 20:48:28 +02:00
|
|
|
}
|
|
|
|
};
|
2021-12-29 15:59:18 +01:00
|
|
|
|
|
|
|
}
|