mirror of
https://gitlab.com/square-game-liberation-front/F.E.I.S.git
synced 2025-02-28 15:30:32 +01:00
Make some fraction conversions explicit in beat_ticks.cpp
This commit is contained in:
parent
e0b5ef16d3
commit
ad48a4c11c
@ -51,11 +51,11 @@ bool BeatTicks::onGetData(sf::SoundStream::Chunk& data) {
|
||||
const auto end_beat = timing->beats_at(end_time);
|
||||
|
||||
auto first_beat = static_cast<std::int64_t>(start_beat);
|
||||
while (first_beat < start_beat) {
|
||||
while (Fraction{first_beat} < start_beat) {
|
||||
first_beat++;
|
||||
}
|
||||
for (std::int64_t beat = first_beat; beat < end_beat; beat++) {
|
||||
const auto time = timing->time_at(beat);
|
||||
for (std::int64_t beat = first_beat; Fraction{beat} < end_beat; beat++) {
|
||||
const auto time = timing->time_at(Fraction{beat});
|
||||
const auto sample = static_cast<std::int64_t>(music_time_to_samples(time));
|
||||
beat_at_sample.insert(sample);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user