In SelectionBar.cpp I need the length of the current track, thus the ‘Audio Position’ resulting from the ‘Skip to End’ knob being pressed.
Where can I find that info and how can I make that info available in the SelectionBar class?
Look for a variable:
t1
t0 is the beginning of the selection and t1 is the end of the selection; if the entire track is selected then
t0 = 0
(time zero) and
t1 = ( the timestamp of the final sample)