More unused parameters and local variables.
This commit is contained in:
parent
e39cdce0fc
commit
4eeef25191
|
@ -515,7 +515,7 @@ struct AudioIO::ScrubQueue
|
|||
// There is work in the queue, but if Producer is outrunning us, discard some,
|
||||
// which may make a skip yet keep playback better synchronized with user gestures.
|
||||
const auto interval = (now - mLastTransformerTimeMillis).ToDouble() / 1000.0;
|
||||
const Entry &previous = mEntries[(mMiddleIdx + Size - 1) % Size];
|
||||
//const Entry &previous = mEntries[(mMiddleIdx + Size - 1) % Size];
|
||||
const auto deficit =
|
||||
static_cast<long>(interval * mRate) - // Samples needed in the last time interval
|
||||
mCredit; // Samples done in the last time interval
|
||||
|
|
|
@ -84,7 +84,7 @@ static void GetAllSeqBlocks(AudacityProject *project,
|
|||
static void ReplaceBlockFiles(AudacityProject *project,
|
||||
ReplacedBlockFileHash &hash)
|
||||
{
|
||||
const auto &dirManager = project->GetDirManager();
|
||||
//const auto &dirManager = project->GetDirManager();
|
||||
BlockPtrArray blocks;
|
||||
GetAllSeqBlocks(project, &blocks);
|
||||
|
||||
|
|
|
@ -289,7 +289,10 @@ bool SnapManager::SnapToPoints(Track *currentTrack,
|
|||
return true;
|
||||
}
|
||||
|
||||
size_t indexInThisTrack = -1;
|
||||
// indexInThisTrack is ONLY used if count > 0
|
||||
// and is initialised then, so we can 'initialise' it
|
||||
// to anything to keep compiler quiet.
|
||||
size_t indexInThisTrack = left;
|
||||
size_t countInThisTrack = 0;
|
||||
for (i = left; i <= right; ++i)
|
||||
{
|
||||
|
|
|
@ -399,7 +399,7 @@ bool EffectPaulstretch::ProcessOne(WaveTrack *track,double t0,double t1,int coun
|
|||
/*************************************************************/
|
||||
|
||||
|
||||
PaulStretch::PaulStretch(float rap_, size_t in_bufsize_, float samplerate_)
|
||||
PaulStretch::PaulStretch(float rap_, size_t in_bufsize_, float /*samplerate_*/)
|
||||
: samplerate { samplerate }
|
||||
, rap { std::max(1.0f, rap_) }
|
||||
, in_bufsize { in_bufsize_ }
|
||||
|
|
|
@ -186,7 +186,7 @@ void ToolBarResizer::OnLeftUp( wxMouseEvent & event )
|
|||
}
|
||||
}
|
||||
|
||||
void ToolBarResizer::OnEnter( wxMouseEvent & event )
|
||||
void ToolBarResizer::OnEnter( wxMouseEvent & /*event*/ )
|
||||
{
|
||||
// Bug 1201: On Mac, unsetting and re-setting the tooltip may be needed
|
||||
// to make it pop up when we want it.
|
||||
|
@ -197,7 +197,7 @@ void ToolBarResizer::OnEnter( wxMouseEvent & event )
|
|||
mOrigFocus = FindFocus();
|
||||
}
|
||||
|
||||
void ToolBarResizer::OnLeave( wxMouseEvent & event )
|
||||
void ToolBarResizer::OnLeave( wxMouseEvent & /*event*/ )
|
||||
{
|
||||
if (!GetCapture())
|
||||
mOrigFocus = nullptr;
|
||||
|
|
|
@ -868,10 +868,12 @@ static float floatMax(float a, float b)
|
|||
return a>b? a: b;
|
||||
}
|
||||
|
||||
/* Unused as yet.
|
||||
static int intmin(int a, int b)
|
||||
{
|
||||
return a<b? a: b;
|
||||
}
|
||||
*/
|
||||
|
||||
static int intmax(int a, int b)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue