I am trying to make an old OF project work again.
It used your great add-on.
I used to play files and compared their current play head position with their actual duration.
I use getLength() for the duration.
I see you have getCurrentTimestamp(). back in then I had to make my own function to get the current play head time.
But something changed because the returned number does not match make any sense in relation to the duration time.
Here is my old function which I can now replace with getCurrentTimestamp().mSampleTime.
But only on my OSX 10.8.5 system are the returned numbers useful.
Foe example right after the first update() is done getCurrentTimestamp().mSampleTime returns 78848.
Would you know why? What changed between os 10.8.5 and 10.12 ?
// ----------------------------------------------------------
int ofxAudioUnitFilePlayer::getPlayheadPos()
// ----------------------------------------------------------
{
AudioTimeStamp timestamp;
UInt32 size = sizeof(timestamp);
AudioUnitGetProperty(*_unit, kAudioUnitProperty_CurrentPlayTime, kAudioUnitScope_Global, 0, ×tamp, &size);
return timestamp.mSampleTime;
}
I am trying to make an old OF project work again.
It used your great add-on.
I used to play files and compared their current play head position with their actual duration.
I use getLength() for the duration.
I see you have getCurrentTimestamp(). back in then I had to make my own function to get the current play head time.
But something changed because the returned number does not match make any sense in relation to the duration time.
Here is my old function which I can now replace with getCurrentTimestamp().mSampleTime.
But only on my OSX 10.8.5 system are the returned numbers useful.
Foe example right after the first update() is done getCurrentTimestamp().mSampleTime returns 78848.
Would you know why? What changed between os 10.8.5 and 10.12 ?