TimeMicros struct
This commit is contained in:
parent
e579ba8ee8
commit
b218bdea7a
9 changed files with 188 additions and 25 deletions
|
|
@ -7388,7 +7388,7 @@ bool FurnaceGUI::loop() {
|
|||
DivFilePlayer* fp=e->getFilePlayer();
|
||||
logV("cursor moved to %d:%d",cursor.order,cursor.y);
|
||||
if (!fp->isPlaying()) {
|
||||
DivSongTimestamps::Timestamp rowTS=e->curSubSong->ts.getTimes(cursor.order,cursor.y);
|
||||
TimeMicros rowTS=e->curSubSong->ts.getTimes(cursor.order,cursor.y);
|
||||
if (rowTS.seconds!=-1) {
|
||||
int cueSeconds=0;
|
||||
int cueMicros=0;
|
||||
|
|
|
|||
|
|
@ -408,7 +408,7 @@ inline void FurnaceGUI::patternRow(int i, bool isPlaying, float lineHeight, int
|
|||
}
|
||||
|
||||
if (debugRowTimestamps) {
|
||||
DivSongTimestamps::Timestamp rowTS=e->curSubSong->ts.getTimes(ord,i);
|
||||
TimeMicros rowTS=e->curSubSong->ts.getTimes(ord,i);
|
||||
if (rowTS.seconds==-1) {
|
||||
ImGui::Text("---");
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ void FurnaceGUI::drawRefPlayer() {
|
|||
ssize_t curSeconds=0;
|
||||
unsigned int curMicros=0;
|
||||
fp->getPosSeconds(curSeconds,curMicros);
|
||||
DivSongTimestamps::Timestamp rowTS=e->curSubSong->ts.getTimes(curOrder,0);
|
||||
TimeMicros rowTS=e->curSubSong->ts.getTimes(curOrder,0);
|
||||
if (rowTS.seconds==-1) {
|
||||
showError(_("the first row of this order isn't going to play."));
|
||||
} else {
|
||||
|
|
@ -168,7 +168,7 @@ void FurnaceGUI::drawRefPlayer() {
|
|||
ssize_t curSeconds=0;
|
||||
unsigned int curMicros=0;
|
||||
fp->getPosSeconds(curSeconds,curMicros);
|
||||
DivSongTimestamps::Timestamp rowTS=e->curSubSong->ts.getTimes(curOrder,0);
|
||||
TimeMicros rowTS=e->curSubSong->ts.getTimes(curOrder,0);
|
||||
if (rowTS.seconds==-1) {
|
||||
showError(_("the first row of this order isn't going to play."));
|
||||
} else {
|
||||
|
|
@ -197,7 +197,7 @@ void FurnaceGUI::drawRefPlayer() {
|
|||
// handled outside
|
||||
}
|
||||
if (ImGui::IsItemClicked(ImGuiMouseButton_Left) || ImGui::IsItemClicked(ImGuiMouseButton_Right)) {
|
||||
DivSongTimestamps::Timestamp rowTS;
|
||||
TimeMicros rowTS;
|
||||
if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) {
|
||||
rowTS=e->curSubSong->ts.getTimes(cursor.order,cursor.y);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue