[C#] Absolute song position in samples
Posted: Sat May 12, 2012 9:03 am
How do I get absolute song position in samples using C# api inside public Sample Work(Sample s) method? Absolute meaning from the beginning of the song.
I tried
but it did not work. In C++ this works
I tried
Code: Select all
int thePosition = Global.Buzz.Song.PlayPosition * host.MasterInfo.SamplesPerTick + host.MasterInfo.PosInTick;
Code: Select all
pMasterInfo->SamplesPerTick * pCB->GetSongPosition() + pMasterInfo->PosInTick