project-kyoku/include/core/bpmsection.h

24 lines
387 B
C
Raw Normal View History

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;
microsec interval = 0;
};
2021-10-05 20:48:28 +02:00
2021-12-29 15:59:18 +01:00
struct BPMSectionComparator
{
bool operator()(const BPMSection& lhs, const BPMSection& rhs) const noexcept
2021-10-05 20:48:28 +02:00
{
return lhs.offset_start < rhs.offset_start;
2021-10-05 20:48:28 +02:00
}
};
2021-12-29 15:59:18 +01:00
}