mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-10 09:27:43 +02:00
Fix more narrowings of sampleCount
This commit is contained in:
parent
8102e1717b
commit
127b2a6acf
@ -4383,7 +4383,7 @@ void TrackPanel::HandleSampleEditingClick( wxMouseEvent & event )
|
|||||||
|
|
||||||
//Get a sample from the track to do some tricks on.
|
//Get a sample from the track to do some tricks on.
|
||||||
mDrawingTrack->Get((samplePtr)sampleRegion, floatSample,
|
mDrawingTrack->Get((samplePtr)sampleRegion, floatSample,
|
||||||
(int)mDrawingStartSample - SMOOTHING_KERNEL_RADIUS - SMOOTHING_BRUSH_RADIUS,
|
mDrawingStartSample - SMOOTHING_KERNEL_RADIUS - SMOOTHING_BRUSH_RADIUS,
|
||||||
sampleRegionSize);
|
sampleRegionSize);
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
|
@ -426,7 +426,7 @@ void WaveClip::ClearWaveCache()
|
|||||||
}
|
}
|
||||||
|
|
||||||
///Adds an invalid region to the wavecache so it redraws that portion only.
|
///Adds an invalid region to the wavecache so it redraws that portion only.
|
||||||
void WaveClip::AddInvalidRegion(long startSample, long endSample)
|
void WaveClip::AddInvalidRegion(sampleCount startSample, sampleCount endSample)
|
||||||
{
|
{
|
||||||
ODLocker locker(&mWaveCacheMutex);
|
ODLocker locker(&mWaveCacheMutex);
|
||||||
if(mWaveCache!=NULL)
|
if(mWaveCache!=NULL)
|
||||||
|
@ -360,7 +360,7 @@ public:
|
|||||||
void ClearWaveCache();
|
void ClearWaveCache();
|
||||||
|
|
||||||
///Adds an invalid region to the wavecache so it redraws that portion only.
|
///Adds an invalid region to the wavecache so it redraws that portion only.
|
||||||
void AddInvalidRegion(long startSample, long endSample);
|
void AddInvalidRegion(sampleCount startSample, sampleCount endSample);
|
||||||
|
|
||||||
//
|
//
|
||||||
// XMLTagHandler callback methods for loading and saving
|
// XMLTagHandler callback methods for loading and saving
|
||||||
|
Loading…
x
Reference in New Issue
Block a user