Type-enforce the waveform overlay contract, narrow waveformLanes to LaneSplit, fix laneCount/cache/path-fallback bugs

This commit is contained in:
2026-07-30 09:35:11 -04:00
parent 2a0d10fab5
commit fb12c53522
19 changed files with 233 additions and 174 deletions
+2 -2
View File
@@ -32,10 +32,10 @@ SampleBands computeSampleBands(int w, int h, int deckHeight) {
return b;
}
WaveformLanes waveformLanes(const Rect& waveform, bool stereo) {
WaveformLanes waveformLanes(const Rect& waveform, LaneSplit split) {
WaveformLanes lanes;
if (waveform.empty()) return lanes;
if (!stereo) {
if (split == LaneSplit::Single) {
lanes.upper = waveform; // one lane; `lower` stays empty
return lanes;
}