mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
AAX transport position when stopped.
This commit is contained in:
parent
5618f6b904
commit
b2ce00db31
1 changed files with 9 additions and 4 deletions
|
|
@ -496,7 +496,15 @@ struct AAXClasses
|
|||
info.timeSigDenominator = (int) den;
|
||||
|
||||
info.timeInSamples = 0;
|
||||
check (transport.GetCurrentNativeSampleLocation (&info.timeInSamples));
|
||||
|
||||
if (transport.IsTransportPlaying (&info.isPlaying) != AAX_SUCCESS)
|
||||
info.isPlaying = false;
|
||||
|
||||
if (! info.isPlaying)
|
||||
check (transport.GetTimelineSelectionStartPosition (&info.timeInSamples));
|
||||
else
|
||||
check (transport.GetCurrentNativeSampleLocation (&info.timeInSamples));
|
||||
|
||||
info.timeInSeconds = info.timeInSamples / getSampleRate();
|
||||
|
||||
int64_t ticks = 0;
|
||||
|
|
@ -509,9 +517,6 @@ struct AAXClasses
|
|||
info.ppqLoopStart = loopStartTick / 960000.0;
|
||||
info.ppqLoopEnd = loopEndTick / 960000.0;
|
||||
|
||||
if (transport.IsTransportPlaying (&info.isPlaying) != AAX_SUCCESS)
|
||||
info.isPlaying = false;
|
||||
|
||||
info.editOriginTime = 0;
|
||||
info.frameRate = AudioPlayHead::fpsUnknown;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue