mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 15:49:36 +02:00
Fix most of the compile warnings I get on Linux (but not the Audacity Logo
xpm stuff or a few things in FFMPEG export)
This commit is contained in:
parent
e801b39943
commit
a55c20be66
@ -330,7 +330,7 @@ void RealFFT(int NumSamples, float *RealIn, float *RealOut, float *ImagOut)
|
|||||||
|
|
||||||
delete[]tmpReal;
|
delete[]tmpReal;
|
||||||
delete[]tmpImag;
|
delete[]tmpImag;
|
||||||
#endif EXPERIMENTAL_USE_REALFFTF
|
#endif //EXPERIMENTAL_USE_REALFFTF
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef EXPERIMENTAL_USE_REALFFTF
|
#ifdef EXPERIMENTAL_USE_REALFFTF
|
||||||
|
@ -245,11 +245,9 @@ void Lyrics::Measure(wxDC *dc) // only for drawn text
|
|||||||
{
|
{
|
||||||
this->SetDrawnFont(dc);
|
this->SetDrawnFont(dc);
|
||||||
int width = 0, height = 0;
|
int width = 0, height = 0;
|
||||||
int maxLineWidth = 0; // only for kHighlightLyrics
|
|
||||||
|
|
||||||
const int kIndent = 4;
|
const int kIndent = 4;
|
||||||
int x = 2*kIndent;
|
int x = 2*kIndent;
|
||||||
int y = kIndent;
|
|
||||||
|
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
for(i=0; i<mSyllables.GetCount(); i++) {
|
for(i=0; i<mSyllables.GetCount(); i++) {
|
||||||
|
@ -376,7 +376,7 @@ void MixerTrackCluster::UpdateMeter(const double t0, const double t1)
|
|||||||
const double dFrameInterval = (t1 - t0) / (double)nFramesPerBuffer;
|
const double dFrameInterval = (t1 - t0) / (double)nFramesPerBuffer;
|
||||||
double dFrameT0 = t0;
|
double dFrameT0 = t0;
|
||||||
double dFrameT1 = t0 + dFrameInterval;
|
double dFrameT1 = t0 + dFrameInterval;
|
||||||
unsigned int i = 0;
|
int i = 0;
|
||||||
while (bSuccess && (i < nFramesPerBuffer))
|
while (bSuccess && (i < nFramesPerBuffer))
|
||||||
{
|
{
|
||||||
bSuccess &=
|
bSuccess &=
|
||||||
@ -595,7 +595,6 @@ MusicalInstrument::MusicalInstrument(wxBitmap* pBitmap, const wxString strXPMfil
|
|||||||
{
|
{
|
||||||
mBitmap = pBitmap;
|
mBitmap = pBitmap;
|
||||||
|
|
||||||
size_t nFirstCharIndex = 0;
|
|
||||||
int nUnderscoreIndex;
|
int nUnderscoreIndex;
|
||||||
wxString strFilename = strXPMfilename;
|
wxString strFilename = strXPMfilename;
|
||||||
strFilename.MakeLower(); // Make sure, so we don't have to do case insensitive comparison.
|
strFilename.MakeLower(); // Make sure, so we don't have to do case insensitive comparison.
|
||||||
|
@ -78,7 +78,7 @@ Track *NoteTrack::Duplicate()
|
|||||||
if (mSeq) {
|
if (mSeq) {
|
||||||
assert(!mSerializationBuffer);
|
assert(!mSerializationBuffer);
|
||||||
// serialize from this to duplicate's mSerializationBuffer
|
// serialize from this to duplicate's mSerializationBuffer
|
||||||
mSeq->serialize(&duplicate->mSerializationBuffer,
|
mSeq->serialize((void**)&duplicate->mSerializationBuffer,
|
||||||
&duplicate->mSerializationLength);
|
&duplicate->mSerializationLength);
|
||||||
} else if (mSerializationBuffer) {
|
} else if (mSerializationBuffer) {
|
||||||
assert(!mSeq);
|
assert(!mSeq);
|
||||||
|
@ -91,7 +91,7 @@ class AUDACITY_DLL_API NoteTrack:public Track {
|
|||||||
// mSeq variable. (TrackArtist should check to make sure this
|
// mSeq variable. (TrackArtist should check to make sure this
|
||||||
// flip-flop from mSeq to mSerializationBuffer happened an
|
// flip-flop from mSeq to mSerializationBuffer happened an
|
||||||
// even number of times, otherwise mSeq will be NULL).
|
// even number of times, otherwise mSeq will be NULL).
|
||||||
void *mSerializationBuffer; // NULL means no buffer
|
char *mSerializationBuffer; // NULL means no buffer
|
||||||
long mSerializationLength;
|
long mSerializationLength;
|
||||||
double mLen;
|
double mLen;
|
||||||
|
|
||||||
|
@ -663,7 +663,6 @@ void GetNextWindowPlacement(wxRect *nextRect, bool *pMaximized, bool *pIconized)
|
|||||||
nextRect->y -= inc;
|
nextRect->y -= inc;
|
||||||
bottomRight = nextRect->GetBottomRight();
|
bottomRight = nextRect->GetBottomRight();
|
||||||
if (bottomRight.y > screenRect.GetBottom()) {
|
if (bottomRight.y > screenRect.GetBottom()) {
|
||||||
int newheight = screenRect.GetHeight() - nextRect->GetBottom();
|
|
||||||
nextRect->SetBottom(screenRect.GetBottom());
|
nextRect->SetBottom(screenRect.GetBottom());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -724,7 +723,6 @@ AudacityProject::AudacityProject(wxWindow * parent, wxWindowID id,
|
|||||||
const wxSize & size)
|
const wxSize & size)
|
||||||
: wxFrame(parent, id, wxT("Audacity"), pos, size),
|
: wxFrame(parent, id, wxT("Audacity"), pos, size),
|
||||||
mLastPlayMode(normalPlay),
|
mLastPlayMode(normalPlay),
|
||||||
mFreqWindow(NULL),
|
|
||||||
mRate((double) gPrefs->Read(wxT("/SamplingRate/DefaultProjectSampleRate"), AudioIO::GetOptimalSupportedSampleRate())),
|
mRate((double) gPrefs->Read(wxT("/SamplingRate/DefaultProjectSampleRate"), AudioIO::GetOptimalSupportedSampleRate())),
|
||||||
mDefaultFormat((sampleFormat) gPrefs->
|
mDefaultFormat((sampleFormat) gPrefs->
|
||||||
Read(wxT("/SamplingRate/DefaultProjectSampleFormat"), floatSample)),
|
Read(wxT("/SamplingRate/DefaultProjectSampleFormat"), floatSample)),
|
||||||
@ -742,6 +740,7 @@ AudacityProject::AudacityProject(wxWindow * parent, wxWindowID id,
|
|||||||
mMixerBoard(NULL),
|
mMixerBoard(NULL),
|
||||||
mMixerBoardFrame(NULL),
|
mMixerBoardFrame(NULL),
|
||||||
#endif
|
#endif
|
||||||
|
mFreqWindow(NULL),
|
||||||
mToolManager(NULL),
|
mToolManager(NULL),
|
||||||
mAudioIOToken(-1),
|
mAudioIOToken(-1),
|
||||||
mIsDeleting(false),
|
mIsDeleting(false),
|
||||||
|
@ -1489,7 +1489,6 @@ void TrackArtist::DrawClipSpectrum(WaveTrack *track,
|
|||||||
double sel0 = viewInfo->sel0;
|
double sel0 = viewInfo->sel0;
|
||||||
double sel1 = viewInfo->sel1;
|
double sel1 = viewInfo->sel1;
|
||||||
|
|
||||||
sampleCount numSamples = clip->GetNumSamples();
|
|
||||||
double tOffset = clip->GetOffset();
|
double tOffset = clip->GetOffset();
|
||||||
double rate = clip->GetRate();
|
double rate = clip->GetRate();
|
||||||
double sps = 1./rate;
|
double sps = 1./rate;
|
||||||
@ -1657,10 +1656,11 @@ void TrackArtist::DrawClipSpectrum(WaveTrack *track,
|
|||||||
|
|
||||||
const float
|
const float
|
||||||
// e=exp(1.0f),
|
// e=exp(1.0f),
|
||||||
log2=log(2.0f),
|
|
||||||
f=rate/2.0f/half,
|
f=rate/2.0f/half,
|
||||||
lmin=log(float(minFreq)),
|
lmin=log(float(minFreq)),
|
||||||
lmax=log(float(maxFreq)),
|
lmax=log(float(maxFreq)),
|
||||||
|
#ifdef EXPERIMENTAL_FIND_NOTES
|
||||||
|
log2=log(2.0f),
|
||||||
#ifdef EXPERIMENTAL_FFT_SKIP_POINTS
|
#ifdef EXPERIMENTAL_FFT_SKIP_POINTS
|
||||||
lmins=log(float(minFreq)/(mFftSkipPoints+1)),
|
lmins=log(float(minFreq)/(mFftSkipPoints+1)),
|
||||||
lmaxs=log(float(maxFreq)/(mFftSkipPoints+1)),
|
lmaxs=log(float(maxFreq)/(mFftSkipPoints+1)),
|
||||||
@ -1668,12 +1668,15 @@ void TrackArtist::DrawClipSpectrum(WaveTrack *track,
|
|||||||
lmins=lmin,
|
lmins=lmin,
|
||||||
lmaxs=lmax,
|
lmaxs=lmax,
|
||||||
#endif //EXPERIMENTAL_FFT_SKIP_POINTS
|
#endif //EXPERIMENTAL_FFT_SKIP_POINTS
|
||||||
scale=lmax-lmin,
|
#endif //EXPERIMENTAL_FIND_NOTES
|
||||||
scale2=(lmax-lmin)/log2,
|
scale=lmax-lmin /*,
|
||||||
lmin2=lmin/log2 /*,
|
|
||||||
expo=exp(scale)*/ ;
|
expo=exp(scale)*/ ;
|
||||||
|
|
||||||
#ifdef EXPERIMENTAL_FFT_Y_GRID
|
#ifdef EXPERIMENTAL_FFT_Y_GRID
|
||||||
|
const float
|
||||||
|
scale2=(lmax-lmin)/log2,
|
||||||
|
lmin2=lmin/log2;
|
||||||
|
|
||||||
bool *yGrid;
|
bool *yGrid;
|
||||||
yGrid=new bool[mid.height];
|
yGrid=new bool[mid.height];
|
||||||
for (int y = 0; y < mid.height; y++) {
|
for (int y = 0; y < mid.height; y++) {
|
||||||
@ -2293,7 +2296,7 @@ void TrackArtist::DrawNoteTrack(NoteTrack *track,
|
|||||||
//for every event
|
//for every event
|
||||||
Alg_event_ptr evt;
|
Alg_event_ptr evt;
|
||||||
printf ("go time\n");
|
printf ("go time\n");
|
||||||
while (evt = iterator.next()) {
|
while ( (evt = iterator.next()) ) {
|
||||||
|
|
||||||
//printf ("one note");
|
//printf ("one note");
|
||||||
|
|
||||||
|
@ -42,9 +42,9 @@ ODDecodeBlockFile::ODDecodeBlockFile(wxFileName baseFileName,wxFileName audioFil
|
|||||||
sampleCount aliasLen, int aliasChannel,unsigned int decodeType):
|
sampleCount aliasLen, int aliasChannel,unsigned int decodeType):
|
||||||
SimpleBlockFile(baseFileName,NULL,aliasLen,floatSample,true,true), //floatSample has no effect. last two bools - bypass writing of blockfile and cache
|
SimpleBlockFile(baseFileName,NULL,aliasLen,floatSample,true,true), //floatSample has no effect. last two bools - bypass writing of blockfile and cache
|
||||||
|
|
||||||
|
mType(decodeType),
|
||||||
mAliasStart(aliasStart),
|
mAliasStart(aliasStart),
|
||||||
mAliasChannel(aliasChannel),
|
mAliasChannel(aliasChannel)
|
||||||
mType(decodeType)
|
|
||||||
{
|
{
|
||||||
mDataAvailable=false;
|
mDataAvailable=false;
|
||||||
mAudioFileName = audioFileName;
|
mAudioFileName = audioFileName;
|
||||||
@ -56,9 +56,9 @@ ODDecodeBlockFile::ODDecodeBlockFile(wxFileName existingFile, wxFileName audioFi
|
|||||||
float min, float max, float rms, bool dataAvailable):
|
float min, float max, float rms, bool dataAvailable):
|
||||||
SimpleBlockFile(existingFile,aliasLen,min,max,rms),
|
SimpleBlockFile(existingFile,aliasLen,min,max,rms),
|
||||||
|
|
||||||
|
mType(decodeType),
|
||||||
mAliasStart(aliasStart),
|
mAliasStart(aliasStart),
|
||||||
mAliasChannel(aliasChannel),
|
mAliasChannel(aliasChannel)
|
||||||
mType(decodeType)
|
|
||||||
{
|
{
|
||||||
mDataAvailable=dataAvailable;
|
mDataAvailable=dataAvailable;
|
||||||
mAudioFileName = audioFileName;
|
mAudioFileName = audioFileName;
|
||||||
|
@ -455,8 +455,8 @@ void CommandManager::AddCheck(const wxChar *name,
|
|||||||
const wxChar *label,
|
const wxChar *label,
|
||||||
CommandFunctor *callback,
|
CommandFunctor *callback,
|
||||||
int checkmark,
|
int checkmark,
|
||||||
int flags,
|
unsigned int flags,
|
||||||
int mask)
|
unsigned int mask)
|
||||||
{
|
{
|
||||||
AddItem(name, label, callback, wxT(""), flags, mask, checkmark);
|
AddItem(name, label, callback, wxT(""), flags, mask, checkmark);
|
||||||
}
|
}
|
||||||
@ -464,8 +464,8 @@ void CommandManager::AddCheck(const wxChar *name,
|
|||||||
void CommandManager::AddItem(const wxChar *name,
|
void CommandManager::AddItem(const wxChar *name,
|
||||||
const wxChar *label,
|
const wxChar *label,
|
||||||
CommandFunctor *callback,
|
CommandFunctor *callback,
|
||||||
int flags,
|
unsigned int flags,
|
||||||
int mask)
|
unsigned int mask)
|
||||||
{
|
{
|
||||||
AddItem(name, label, callback, wxT(""), flags, mask);
|
AddItem(name, label, callback, wxT(""), flags, mask);
|
||||||
}
|
}
|
||||||
@ -474,8 +474,8 @@ void CommandManager::AddItem(const wxChar *name,
|
|||||||
const wxChar *label_in,
|
const wxChar *label_in,
|
||||||
CommandFunctor *callback,
|
CommandFunctor *callback,
|
||||||
const wxChar *accel,
|
const wxChar *accel,
|
||||||
int flags,
|
unsigned int flags,
|
||||||
int mask,
|
unsigned int mask,
|
||||||
int checkmark)
|
int checkmark)
|
||||||
{
|
{
|
||||||
wxString label(label_in);
|
wxString label(label_in);
|
||||||
@ -582,8 +582,8 @@ void CommandManager::AddItemList(wxString name, wxArrayString labels,
|
|||||||
void CommandManager::AddCommand(const wxChar *name,
|
void CommandManager::AddCommand(const wxChar *name,
|
||||||
const wxChar *label,
|
const wxChar *label,
|
||||||
CommandFunctor *callback,
|
CommandFunctor *callback,
|
||||||
int flags,
|
unsigned int flags,
|
||||||
int mask)
|
unsigned int mask)
|
||||||
{
|
{
|
||||||
AddCommand(name, label, callback, wxT(""), flags, mask);
|
AddCommand(name, label, callback, wxT(""), flags, mask);
|
||||||
}
|
}
|
||||||
@ -592,8 +592,8 @@ void CommandManager::AddCommand(const wxChar *name,
|
|||||||
const wxChar *label_in,
|
const wxChar *label_in,
|
||||||
CommandFunctor *callback,
|
CommandFunctor *callback,
|
||||||
const wxChar *accel,
|
const wxChar *accel,
|
||||||
int flags,
|
unsigned int flags,
|
||||||
int mask)
|
unsigned int mask)
|
||||||
{
|
{
|
||||||
wxString label(label_in);
|
wxString label(label_in);
|
||||||
label += wxT("\t");
|
label += wxT("\t");
|
||||||
|
@ -106,21 +106,21 @@ class AUDACITY_DLL_API CommandManager: public XMLTagHandler
|
|||||||
const wxChar *label,
|
const wxChar *label,
|
||||||
CommandFunctor *callback,
|
CommandFunctor *callback,
|
||||||
int checkmark,
|
int checkmark,
|
||||||
int flags,
|
unsigned int flags,
|
||||||
int mask);
|
unsigned int mask);
|
||||||
|
|
||||||
void AddItem(const wxChar *name,
|
void AddItem(const wxChar *name,
|
||||||
const wxChar *label,
|
const wxChar *label,
|
||||||
CommandFunctor *callback,
|
CommandFunctor *callback,
|
||||||
int flags = NoFlagsSpecifed,
|
unsigned int flags = NoFlagsSpecifed,
|
||||||
int mask = NoFlagsSpecifed);
|
unsigned int mask = NoFlagsSpecifed);
|
||||||
|
|
||||||
void AddItem(const wxChar *name,
|
void AddItem(const wxChar *name,
|
||||||
const wxChar *label_in,
|
const wxChar *label_in,
|
||||||
CommandFunctor *callback,
|
CommandFunctor *callback,
|
||||||
const wxChar *accel,
|
const wxChar *accel,
|
||||||
int flags = NoFlagsSpecifed,
|
unsigned int flags = NoFlagsSpecifed,
|
||||||
int mask = NoFlagsSpecifed,
|
unsigned int mask = NoFlagsSpecifed,
|
||||||
int checkmark = -1);
|
int checkmark = -1);
|
||||||
|
|
||||||
void AddSeparator();
|
void AddSeparator();
|
||||||
@ -130,15 +130,15 @@ class AUDACITY_DLL_API CommandManager: public XMLTagHandler
|
|||||||
void AddCommand(const wxChar *name,
|
void AddCommand(const wxChar *name,
|
||||||
const wxChar *label,
|
const wxChar *label,
|
||||||
CommandFunctor *callback,
|
CommandFunctor *callback,
|
||||||
int flags = NoFlagsSpecifed,
|
unsigned int flags = NoFlagsSpecifed,
|
||||||
int mask = NoFlagsSpecifed);
|
unsigned int mask = NoFlagsSpecifed);
|
||||||
|
|
||||||
void AddCommand(const wxChar *name,
|
void AddCommand(const wxChar *name,
|
||||||
const wxChar *label,
|
const wxChar *label,
|
||||||
CommandFunctor *callback,
|
CommandFunctor *callback,
|
||||||
const wxChar *accel,
|
const wxChar *accel,
|
||||||
int flags = NoFlagsSpecifed,
|
unsigned int flags = NoFlagsSpecifed,
|
||||||
int mask = NoFlagsSpecifed);
|
unsigned int mask = NoFlagsSpecifed);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Command masks
|
// Command masks
|
||||||
|
@ -57,11 +57,11 @@ bool GetProjectInfoCommand::Apply(CommandExecutionContext context)
|
|||||||
}
|
}
|
||||||
else if (mode.IsSameAs(wxT("FocusedTrackID")))
|
else if (mode.IsSameAs(wxT("FocusedTrackID")))
|
||||||
{
|
{
|
||||||
int FocusedTrackID = SendFocusedTrackIndex(context);
|
SendFocusedTrackIndex(context);
|
||||||
}
|
}
|
||||||
else if (mode.IsSameAs(wxT("NumberOfTracks")))
|
else if (mode.IsSameAs(wxT("NumberOfTracks")))
|
||||||
{
|
{
|
||||||
int NumberOfTracks = SendNumberOfTracks(context);
|
SendNumberOfTracks(context);
|
||||||
}
|
}
|
||||||
else if (mode.IsSameAs(wxT("SelectedTracks")))
|
else if (mode.IsSameAs(wxT("SelectedTracks")))
|
||||||
{
|
{
|
||||||
|
@ -247,7 +247,6 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
|||||||
|
|
||||||
if (mForegroundEndT == NULL)
|
if (mForegroundEndT == NULL)
|
||||||
{
|
{
|
||||||
AudacityProject *p = GetActiveProject();
|
|
||||||
mForegroundEndT = new
|
mForegroundEndT = new
|
||||||
TimeTextCtrl(this,
|
TimeTextCtrl(this,
|
||||||
ID_FOREGROUNDEND_T,
|
ID_FOREGROUNDEND_T,
|
||||||
@ -271,7 +270,6 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
|||||||
S.AddFixedText(_("Background:"));
|
S.AddFixedText(_("Background:"));
|
||||||
if (mBackgroundStartT == NULL)
|
if (mBackgroundStartT == NULL)
|
||||||
{
|
{
|
||||||
AudacityProject *p = GetActiveProject();
|
|
||||||
mBackgroundStartT = new
|
mBackgroundStartT = new
|
||||||
TimeTextCtrl(this,
|
TimeTextCtrl(this,
|
||||||
ID_BACKGROUNDSTART_T,
|
ID_BACKGROUNDSTART_T,
|
||||||
@ -289,7 +287,6 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
|||||||
|
|
||||||
if (mBackgroundEndT == NULL)
|
if (mBackgroundEndT == NULL)
|
||||||
{
|
{
|
||||||
AudacityProject *p = GetActiveProject();
|
|
||||||
mBackgroundEndT = new
|
mBackgroundEndT = new
|
||||||
TimeTextCtrl(this,
|
TimeTextCtrl(this,
|
||||||
ID_BACKGROUNDEND_T,
|
ID_BACKGROUNDEND_T,
|
||||||
|
@ -144,8 +144,6 @@ bool EffectFindClipping::ProcessOne(LabelTrack * l,
|
|||||||
|
|
||||||
float *ptr = buffer;
|
float *ptr = buffer;
|
||||||
|
|
||||||
bool first = true;
|
|
||||||
|
|
||||||
sampleCount startrun = 0;
|
sampleCount startrun = 0;
|
||||||
sampleCount stoprun = 0;
|
sampleCount stoprun = 0;
|
||||||
sampleCount samps = 0;
|
sampleCount samps = 0;
|
||||||
|
@ -188,11 +188,8 @@ bool EffectSBSMS::Process()
|
|||||||
for (t = iter.First(); t->GetKind() != Track::Wave; t = iter.Next());
|
for (t = iter.First(); t->GetKind() != Track::Wave; t = iter.Next());
|
||||||
if (!t)
|
if (!t)
|
||||||
return false;
|
return false;
|
||||||
WaveTrack* leftTrack = (WaveTrack*)t;
|
|
||||||
WaveTrack* saveLeft = leftTrack;
|
|
||||||
mCurTrackNum = 0;
|
mCurTrackNum = 0;
|
||||||
|
|
||||||
double len = leftTrack->GetEndTime() - leftTrack->GetStartTime();
|
|
||||||
double maxDuration = 0.0;
|
double maxDuration = 0.0;
|
||||||
|
|
||||||
if(rateStart == rateEnd)
|
if(rateStart == rateEnd)
|
||||||
@ -347,7 +344,6 @@ bool EffectSBSMS::Process()
|
|||||||
long pos = 0;
|
long pos = 0;
|
||||||
long lastPos = 0;
|
long lastPos = 0;
|
||||||
long ret = 0;
|
long ret = 0;
|
||||||
bool stopped = false;
|
|
||||||
while(lastPos<samplesToProcess) {
|
while(lastPos<samplesToProcess) {
|
||||||
ret = sbsms_pre_analyze(&samplesCB,&si,rb.sbsmser);
|
ret = sbsms_pre_analyze(&samplesCB,&si,rb.sbsmser);
|
||||||
lastPos = pos;
|
lastPos = pos;
|
||||||
|
@ -54,8 +54,6 @@ bool EffectSoundTouch::Process()
|
|||||||
mCurTrackNum = 0;
|
mCurTrackNum = 0;
|
||||||
m_maxNewLength = 0.0;
|
m_maxNewLength = 0.0;
|
||||||
|
|
||||||
double len = leftTrack->GetEndTime() - leftTrack->GetStartTime();
|
|
||||||
|
|
||||||
// we only do a "group change" in the first selected track of the group.
|
// we only do a "group change" in the first selected track of the group.
|
||||||
// ClearAndPaste has a call to Paste that does changes to the group tracks
|
// ClearAndPaste has a call to Paste that does changes to the group tracks
|
||||||
bool first = true;
|
bool first = true;
|
||||||
|
@ -57,7 +57,7 @@ wxString EffectToneGen::GetEffectDescription() {
|
|||||||
// Note: This is useful only after values have been set.
|
// Note: This is useful only after values have been set.
|
||||||
/// \todo update to include *all* chirp parameters??
|
/// \todo update to include *all* chirp parameters??
|
||||||
const wxChar* waveformNames[] = {wxT("sine"), wxT("square"), wxT("sawtooth"), wxT("square, no alias")};
|
const wxChar* waveformNames[] = {wxT("sine"), wxT("square"), wxT("sawtooth"), wxT("square, no alias")};
|
||||||
const wxChar* interpolationNames[] = {wxT("linear"), wxT("logarithmic")};
|
//const wxChar* interpolationNames[] = {wxT("linear"), wxT("logarithmic")};
|
||||||
return wxString::Format(_("Applied effect: Generate %s wave %s, frequency = %.2f Hz, amplitude = %.2f, %.6lf seconds"),
|
return wxString::Format(_("Applied effect: Generate %s wave %s, frequency = %.2f Hz, amplitude = %.2f, %.6lf seconds"),
|
||||||
waveformNames[waveform], mbChirp ? wxT("chirp") : wxT("tone"), frequency[0], amplitude[0], mDuration);
|
waveformNames[waveform], mbChirp ? wxT("chirp") : wxT("tone"), frequency[0], amplitude[0], mDuration);
|
||||||
}
|
}
|
||||||
|
@ -180,10 +180,10 @@ void LoadLadspaPlugins()
|
|||||||
wxSortedArrayString uniq;
|
wxSortedArrayString uniq;
|
||||||
wxString pathVar;
|
wxString pathVar;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
EffectManager& em = EffectManager::Get();
|
|
||||||
|
|
||||||
#if defined(USE_LIBLRDF) && defined(EFFECT_CATEGORIES)
|
#if defined(USE_LIBLRDF) && defined(EFFECT_CATEGORIES)
|
||||||
|
|
||||||
|
EffectManager& em = EffectManager::Get();
|
||||||
wxArrayString rdfPathList;
|
wxArrayString rdfPathList;
|
||||||
wxString rdfPathVar;
|
wxString rdfPathVar;
|
||||||
wxArrayString rdfFiles;
|
wxArrayString rdfFiles;
|
||||||
|
@ -473,7 +473,7 @@ VampEffectDialog::VampEffectDialog(VampEffect *effect,
|
|||||||
for (size_t i = 0; i < mParameters[p].valueNames.size(); ++i) {
|
for (size_t i = 0; i < mParameters[p].valueNames.size(); ++i) {
|
||||||
wxString choice = wxString
|
wxString choice = wxString
|
||||||
(mParameters[p].valueNames[i].c_str(), wxConvISO8859_1);
|
(mParameters[p].valueNames[i].c_str(), wxConvISO8859_1);
|
||||||
if (int(value - mParameters[p].minValue + 0.5) == i) {
|
if (size_t(value - mParameters[p].minValue + 0.5) == i) {
|
||||||
selected = choice;
|
selected = choice;
|
||||||
}
|
}
|
||||||
choices.Add(choice);
|
choices.Add(choice);
|
||||||
@ -707,7 +707,7 @@ void VampEffectDialog::UpdateFromPlugin()
|
|||||||
for (size_t i = 0; i < mParameters[p].valueNames.size(); ++i) {
|
for (size_t i = 0; i < mParameters[p].valueNames.size(); ++i) {
|
||||||
wxString choice = wxString
|
wxString choice = wxString
|
||||||
(mParameters[p].valueNames[i].c_str(), wxConvISO8859_1);
|
(mParameters[p].valueNames[i].c_str(), wxConvISO8859_1);
|
||||||
if (int(value - mParameters[p].minValue + 0.5) == i) {
|
if (size_t(value - mParameters[p].minValue + 0.5) == i) {
|
||||||
selected = choice;
|
selected = choice;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -426,7 +426,7 @@ int ExportCL::Export(AudacityProject *project,
|
|||||||
wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
|
wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
|
||||||
|
|
||||||
ShuttleGui S(&dlg, eIsCreating);
|
ShuttleGui S(&dlg, eIsCreating);
|
||||||
wxTextCtrl *tc = S.AddTextWindow(output);
|
S.AddTextWindow(output);
|
||||||
S.StartHorizontalLay(wxALIGN_CENTER, false);
|
S.StartHorizontalLay(wxALIGN_CENTER, false);
|
||||||
{
|
{
|
||||||
S.Id(wxID_OK).AddButton(_("&OK"))->SetDefault();
|
S.Id(wxID_OK).AddButton(_("&OK"))->SetDefault();
|
||||||
|
@ -242,7 +242,6 @@ int OggImportFileHandle::Import(TrackFactory *trackFactory, Track ***outTracks,
|
|||||||
}
|
}
|
||||||
|
|
||||||
vorbis_info *vi = ov_info(mVorbisFile, i);
|
vorbis_info *vi = ov_info(mVorbisFile, i);
|
||||||
vorbis_comment *vc = ov_comment(mVorbisFile, i);
|
|
||||||
|
|
||||||
mChannels[i] = new WaveTrack *[vi->channels];
|
mChannels[i] = new WaveTrack *[vi->channels];
|
||||||
|
|
||||||
|
@ -27,12 +27,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define DESC _("FLAC files")
|
#define DESC _("FLAC files")
|
||||||
|
|
||||||
static const wxChar *exts[] =
|
|
||||||
{
|
|
||||||
wxT("flac"),
|
|
||||||
wxT("flc")
|
|
||||||
};
|
|
||||||
|
|
||||||
ODDecodeFlacTask::~ODDecodeFlacTask()
|
ODDecodeFlacTask::~ODDecodeFlacTask()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -50,8 +50,8 @@ END_EVENT_TABLE()
|
|||||||
|
|
||||||
DirectoriesPrefs::DirectoriesPrefs(wxWindow * parent)
|
DirectoriesPrefs::DirectoriesPrefs(wxWindow * parent)
|
||||||
: PrefsPanel(parent, _("Directories")),
|
: PrefsPanel(parent, _("Directories")),
|
||||||
mTempDir(NULL),
|
mFreeSpace(NULL),
|
||||||
mFreeSpace(NULL)
|
mTempDir(NULL)
|
||||||
{
|
{
|
||||||
Populate();
|
Populate();
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#include "FileHistory.h"
|
#include "FileHistory.h"
|
||||||
|
|
||||||
FileHistory::FileHistory(int maxfiles, wxWindowID base)
|
FileHistory::FileHistory(size_t maxfiles, wxWindowID base)
|
||||||
{
|
{
|
||||||
mMaxFiles = maxfiles;
|
mMaxFiles = maxfiles;
|
||||||
mIDBase = base;
|
mIDBase = base;
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
class AUDACITY_DLL_API FileHistory
|
class AUDACITY_DLL_API FileHistory
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FileHistory(int maxfiles = 9, wxWindowID idbase = wxID_FILE);
|
FileHistory(size_t maxfiles = 9, wxWindowID idbase = wxID_FILE);
|
||||||
virtual ~FileHistory();
|
virtual ~FileHistory();
|
||||||
|
|
||||||
void AddFileToHistory(const wxString & file, bool update = true);
|
void AddFileToHistory(const wxString & file, bool update = true);
|
||||||
@ -40,7 +40,7 @@ class AUDACITY_DLL_API FileHistory
|
|||||||
wxString GetHistoryFile(size_t i) const;
|
wxString GetHistoryFile(size_t i) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int mMaxFiles;
|
size_t mMaxFiles;
|
||||||
wxWindowID mIDBase;
|
wxWindowID mIDBase;
|
||||||
|
|
||||||
wxArrayPtrVoid mMenus;
|
wxArrayPtrVoid mMenus;
|
||||||
|
@ -630,8 +630,10 @@ void Meter::OnMeterUpdate(wxTimerEvent &evt)
|
|||||||
{
|
{
|
||||||
MeterUpdateMsg msg;
|
MeterUpdateMsg msg;
|
||||||
int numChanges = 0;
|
int numChanges = 0;
|
||||||
|
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
double maxPeak = 0.0;
|
double maxPeak = 0.0;
|
||||||
bool discarded = false;
|
bool discarded = false;
|
||||||
|
#endif
|
||||||
// There may have been several update messages since the last
|
// There may have been several update messages since the last
|
||||||
// time we got to this function. Catch up to real-time by
|
// time we got to this function. Catch up to real-time by
|
||||||
// popping them off until there are none left. It is necessary
|
// popping them off until there are none left. It is necessary
|
||||||
|
@ -1002,8 +1002,8 @@ ProgressDialog::ProgressDialog(const wxString & title, const wxString & message,
|
|||||||
wxDefaultSize,
|
wxDefaultSize,
|
||||||
wxDEFAULT_DIALOG_STYLE |
|
wxDEFAULT_DIALOG_STYLE |
|
||||||
wxFRAME_FLOAT_ON_PARENT),
|
wxFRAME_FLOAT_ON_PARENT),
|
||||||
mDisable(NULL),
|
mLastValue(0),
|
||||||
mLastValue(0)
|
mDisable(NULL)
|
||||||
{
|
{
|
||||||
wxBoxSizer *v;
|
wxBoxSizer *v;
|
||||||
wxWindow *w;
|
wxWindow *w;
|
||||||
|
@ -1111,7 +1111,6 @@ void Ruler::Update( Envelope *speedEnv, long minSpeed, long maxSpeed )
|
|||||||
double hiLog = log10(mMax);
|
double hiLog = log10(mMax);
|
||||||
double scale = mLength/(hiLog - loLog);
|
double scale = mLength/(hiLog - loLog);
|
||||||
int loDecade = (int) floor(loLog);
|
int loDecade = (int) floor(loLog);
|
||||||
int hiDecade = (int) ceil(hiLog);
|
|
||||||
|
|
||||||
int pos;
|
int pos;
|
||||||
double val;
|
double val;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user