mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-22 13:17:17 +01:00
There is always at least a tempo and meter section
This commit is contained in:
parent
6227dd5b04
commit
114b5088c7
1 changed files with 12 additions and 0 deletions
|
|
@ -4258,6 +4258,12 @@ TempoMap::tempo_section_at_beat_locked (const Metrics& metrics, const double& be
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
if (prev_t == 0) {
|
||||
fatal << endmsg;
|
||||
abort(); /*NOTREACHED*/
|
||||
}
|
||||
|
||||
return *prev_t;
|
||||
}
|
||||
|
||||
|
|
@ -4435,6 +4441,12 @@ TempoMap::meter_section_at_beat_locked (const Metrics& metrics, const double& be
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
if (prev_m == 0) {
|
||||
fatal << endmsg;
|
||||
abort(); /*NOTREACHED*/
|
||||
}
|
||||
|
||||
return *prev_m;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue