mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-04 09:39:42 +02:00
Found and fixed a case where int was used where sampleCount should be
This commit is contained in:
parent
015ac3f873
commit
cf49d77dda
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user