mirror of
https://gitlab.com/square-game-liberation-front/F.E.I.S.git
synced 2025-02-28 23:41:33 +01:00
Fix playback when there's no music
This commit is contained in:
parent
f09f6b66b3
commit
ed0b43c375
@ -181,11 +181,7 @@ void EditorState::set_playback_position(std::variant<sf::Time, Fraction> newPosi
|
|||||||
};
|
};
|
||||||
|
|
||||||
sf::Time EditorState::get_precise_playback_position() {
|
sf::Time EditorState::get_precise_playback_position() {
|
||||||
if (music.has_value()) {
|
return audio.getPrecisePlayingOffset();
|
||||||
return audio.getPrecisePlayingOffset();
|
|
||||||
} else {
|
|
||||||
return current_time();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Fraction EditorState::current_exact_beats() const {
|
Fraction EditorState::current_exact_beats() const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user