1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 17:49:45 +02:00

Found and fixed a case where int was used where sampleCount should be

This commit is contained in:
mchinen 2011-04-26 14:54:41 +00:00
parent 015ac3f873
commit cf49d77dda

View File

@ -5315,7 +5315,7 @@ bool TrackPanel::HitTestSamples(Track *track, wxRect &r, wxMouseEvent & event)
float oneSample;
double pps = mViewInfo->zoom;
double tt = (event.m_x - r.x) / pps + mViewInfo->h;
int s0 = (int)(tt * rate + 0.5);
sampleCount s0 = (sampleCount)(tt * rate + 0.5);
// Just get one sample.
wavetrack->Get((samplePtr)&oneSample, floatSample, s0, 1);