Fix minor typos (#720)

Co-authored-by: freddii <https://freddii@github.com>
This commit is contained in:
freddii 2021-01-12 12:56:09 +01:00 committed by GitHub
parent 85f333a31f
commit 534359de6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
35 changed files with 46 additions and 46 deletions

View File

@ -160,7 +160,7 @@ typedef ModuleInterface *(*ModuleMain)(const wxString *path);
static ModuleInterface * name(const wxString *path)
// ----------------------------------------------------------------------------
// This will create a class and instnace that will register the module entry
// This will create a class and instance that will register the module entry
// point during Audacity startup. At the appropriate time, the entry point
// will be called to create the module instance.
// ----------------------------------------------------------------------------

View File

@ -32492,7 +32492,7 @@ SQLITE_PRIVATE int sqlite3SafetyCheckSickOrOk(sqlite3 *db){
}
/*
** Attempt to add, substract, or multiply the 64-bit signed value iB against
** Attempt to add, subtract, or multiply the 64-bit signed value iB against
** the other 64-bit signed integer at *pA and store the result in *pA.
** Return 0 on success. Or if the operation would have resulted in an
** overflow, leave *pA unchanged and return 1.

View File

@ -206,7 +206,7 @@ $control text (_ "Label text") string "" (_ "Sound ##1")
(setf end-time (first (nth (1- i) snd-list)))
;don't overlap next sound
(setf label-start (min end-time (+ start-time pre-offset)))
;dont't overlap previous sound
;don't overlap previous sound
(setf label-end (max start-time (- end-time post-offset)))
;ensure end is not before start
(when (< (- label-end label-start) 0)

View File

@ -125,7 +125,7 @@ $copyright (_ "Released under terms of the GNU General Public License version 2"
(setf f1 (/ f1 *sound-srate*)))
;(format t "Low: ~a High: ~a" (if f0 (* f0 *sound-srate*) nil) (if f1 (* f1 *sound-srate*) nil))
(if (not (or f0 f1))
"" ;may occur if multiple tracks with diferent sample rates
"" ;may occur if multiple tracks with different sample rates
(sim
(mult env
(if f0 (dofilter f0 lp-width 0) 0))

View File

@ -195,7 +195,7 @@ $control high-transition (_ "High Cut for Vocals (Hz)") real "" 9000 1 24000
;; Make a weighted center (mono)
;; that can be substracted from L&R
;; that can be subtracted from L&R
(defun steer (side obj &aux (mid (send obj :next)))
(cond
((and mid side)

View File

@ -191,7 +191,7 @@ def monobook_fix_html(doc, page_url):
if config.made_by:
doc = doc.replace('<html xmlns=', MADE_BY_COMMENT + '\n<html xmlns=')
# Obselete substitutions.
# Obsolete substitutions.
# doc = remove_tag(doc, '<div class="portlet" id="p-editors">', '</div>', '<div')
#James also remove the page/discussion/source/history/ div.
doc = remove_tag(doc, '<li id="ca-', '</li>', '<li')
@ -485,7 +485,7 @@ def find_unused_filename(filename, exists=os.path.exists):
"""
Return 'file' if 'file' doesn't exist, otherwise 'file1', 'file2', etc.
Existance is determined by the callable exists(), which takes
Existence is determined by the callable exists(), which takes
a filename and returns a boolean.
"""
if not exists(filename):

View File

@ -1827,7 +1827,7 @@ bool AudacityApp::CreateSingleInstanceChecker(const wxString &dir)
// Create (or return) the SERVER semaphore ID
int servid = semget(servkey, 1, IPC_CREAT | S_IRUSR | S_IWUSR);
// Create the LOCK semaphore only if it doens't already exist.
// Create the LOCK semaphore only if it doesn't already exist.
int lockid = semget(lockkey, 1, IPC_CREAT | IPC_EXCL | S_IRUSR | S_IWUSR);
// If the LOCK semaphore was successfully created, then this is the first

View File

@ -3050,7 +3050,7 @@ void AudioIO::FillBuffers()
|| newBlocks;
} // end loop over capture channels
// Now update the recording shedule position
// Now update the recording schedule position
mRecordingSchedule.mPosition += avail / mRate;
mRecordingSchedule.mLatencyCorrected = latencyCorrected;

View File

@ -3,7 +3,7 @@
Audacity: A Digital Audio Editor
@file DBConnection.h
@brief Declare DBConnection, which maintains database connection and associated status and background thred
@brief Declare DBConnection, which maintains database connection and associated status and background thread
Paul Licameli -- split from ProjectFileIO.h

View File

@ -249,7 +249,7 @@ private:
// TODO: mTrackEpsilon based on assumption of 200KHz. Needs review if/when
// we support higher sample rates.
/** \brief The shortest distance appart that points on an envelope can be
/** \brief The shortest distance apart that points on an envelope can be
* before being considered the same point */
double mTrackEpsilon { 1.0 / 200000.0 };
bool mDB;

View File

@ -112,7 +112,7 @@ public:
: wxEventFilter()
{
#if defined(__WXMAC__)
// In wx3, the menu accelerators take precendence over key event processing
// In wx3, the menu accelerators take precedence over key event processing
// so we won't get wxEVT_CHAR_HOOK events for combinations assigned to menus.
// Since we only support OS X 10.6 or greater, we can use an event monitor
// to capture the key event before it gets to the normal wx3 processing.

View File

@ -1591,7 +1591,7 @@ bool ProjectFileIO::WriteDoc(const char *table,
int rc;
// For now, we always use an ID of 1. This will replace the previously
// writen row every time.
// written row every time.
char sql[256];
sqlite3_snprintf(sizeof(sql),
sql,

View File

@ -74,7 +74,7 @@ enum FieldTypes
// Static so that the dict can be reused each time.
//
// If entries get added later, like when an envelope node (for example)
// is writen and then the envelope is later removed, the dict will still
// is written and then the envelope is later removed, the dict will still
// contain the envelope name, but that's not a problem.
NameMap ProjectSerializer::mNames;

View File

@ -302,7 +302,7 @@ v4sf exp_ps(v4sf x) {
emm0 = _mm_cvttps_epi32(fx);
tmp = _mm_cvtepi32_ps(emm0);
#endif
/* if greater, substract 1 */
/* if greater, subtract 1 */
v4sf mask = _mm_cmpgt_ps(tmp, fx);
mask = _mm_and_ps(mask, one);
fx = _mm_sub_ps(tmp, mask);

View File

@ -1561,7 +1561,7 @@ void CommandManager::CheckDups()
// to test for this case.
// Note that if a user is using the full set of default shortcuts, and one
// of these is changed, then if /GUI/Shortcuts/FullDefaults is not set in audacity.cfg,
// because the defaults appear as user assigned shorcuts in audacity.cfg,
// because the defaults appear as user assigned shortcuts in audacity.cfg,
// the previous default overrides the changed default, and no duplicate can
// be introduced.
void CommandManager::RemoveDuplicateShortcuts()

View File

@ -1134,7 +1134,7 @@ bool Effect::SetAutomationParameters(const wxString & parms)
Effect::MessageBox(
XO("%s: Could not load settings below. Default settings will be used.\n\n%s")
.Format( GetName(), preset ) );
// We are using defualt settings and we still wish to continue.
// We are using default settings and we still wish to continue.
return true;
//return false;
}

View File

@ -207,7 +207,7 @@ bool EffectEqualization48x::AllocateBuffersWorkers(int nThreads)
// this will remove the disparity in data at the intersections of the runs
// The nice magic allocation
// megabyte - 3 windows - 4 overlaping buffers - filter
// megabyte - 3 windows - 4 overlapping buffers - filter
// 2^20 = 1,048,576 - 3 * 2^14 (16,384) - ((4 * 20) - 3) * 12,384 - 4000
// 1,048,576 - 49,152 - 953,568 - 4000 = 41,856 (leftover)
@ -965,7 +965,7 @@ bool EffectEqualization48x::ProcessOne1x4xThreaded(int count, WaveTrack * t,
currentSample-=mBlockSize+(mFilterSize>>1);
mBufferInfo[currentIndex].mBufferStatus=BufferReady; // free for grabbin
bigBlocksRead++;
} else mBufferInfo[currentIndex].mBufferStatus=BufferEmpty; // this is completely unecessary
} else mBufferInfo[currentIndex].mBufferStatus=BufferEmpty; // this is completely unnecessary
currentIndex=(currentIndex+1)%mWorkerDataCount;
}
}
@ -1261,7 +1261,7 @@ bool EffectEqualization48x::ProcessOne8xThreaded(int count, WaveTrack * t,
currentSample-=mBlockSize+(mFilterSize>>1);
mBufferInfo[currentIndex].mBufferStatus=BufferReady; // free for grabbin
bigBlocksRead++;
} else mBufferInfo[currentIndex].mBufferStatus=BufferEmpty; // this is completely unecessary
} else mBufferInfo[currentIndex].mBufferStatus=BufferEmpty; // this is completely unnecessary
currentIndex=(currentIndex+1)%mWorkerDataCount;
}
}

View File

@ -550,7 +550,7 @@ size_t RealtimeEffectState::RealtimeProcess(int group,
// All input channels have been consumed
ichans = 0;
}
// Otherwise fullfil the client's needs with as many input channels as possible.
// Otherwise fulfill the client's needs with as many input channels as possible.
// After calling the client with this set, we will loop back up to process more
// of the input/output channels.
else if (ichans >= numAudioIn)
@ -582,7 +582,7 @@ size_t RealtimeEffectState::RealtimeProcess(int group,
// All output channels have been consumed
ochans = 0;
}
// Otherwise fullfil the client's needs with as many output channels as possible.
// Otherwise fulfill the client's needs with as many output channels as possible.
// After calling the client with this set, we will loop back up to process more
// of the input/output channels.
else if (ochans >= numAudioOut)

View File

@ -830,7 +830,7 @@ bool Exporter::CheckMix(bool prompt /*= true*/ )
// Clean up ... should never happen
mMixerSpec.reset();
// Detemine if exported file will be stereo or mono or multichannel,
// Determine if exported file will be stereo or mono or multichannel,
// and if mixing will occur.
auto downMix = ImportExportPrefs::ExportDownMixSetting.ReadEnum();
@ -923,7 +923,7 @@ bool Exporter::ExportTracks()
::wxRemoveFile(mActualName.GetFullPath());
::wxRenameFile(mFilename.GetFullPath(), mActualName.GetFullPath());
}
// Restore filname
// Restore filename
mFilename = mActualName;
}
else {
@ -1290,7 +1290,7 @@ double ExportMixerPanel::Distance( wxPoint &a, wxPoint &b )
return sqrt( pow( a.x - b.x, 2.0 ) + pow( a.y - b.y, 2.0 ) );
}
//checks if p is on the line connecting la, lb with tolerence
//checks if p is on the line connecting la, lb with tolerance
bool ExportMixerPanel::IsOnLine( wxPoint p, wxPoint la, wxPoint lb )
{
return Distance( p, la ) + Distance( p, lb ) - Distance( la, lb ) < 0.1;

View File

@ -63,7 +63,7 @@ struct ExposedFormat
/// Describes format-codec compatibility
struct CompatibilityEntry
{
const wxChar *fmt; //!< format, recognizeable by guess_format()
const wxChar *fmt; //!< format, recognizable by guess_format()
AVCodecID codec; //!< codec ID
};

View File

@ -1139,7 +1139,7 @@ wxString ExportMultipleDialog::MakeFileName(const wxString &input)
// build the dialog
TranslatableString msg;
wxString excluded = ::wxJoin( Internat::GetExcludedCharacters(), wxChar(' ') );
// TODO: For Russian langauge we should have separate cases for 2 and more than 2 letters.
// TODO: For Russian language we should have separate cases for 2 and more than 2 letters.
if( excluded.length() > 1 ){
msg = XO(
// i18n-hint: The second %s gives some letters that can't be used.

View File

@ -332,7 +332,7 @@ bool MP3ImportFileHandle::Open()
return false;
}
// Get the legnth of the file
// Get the length of the file
mFileLen = mFile.Seek(0, wxFromEnd);
if (mFileLen == wxInvalidOffset || mFile.Error())
{

View File

@ -93,7 +93,7 @@ void ShowDiagnostics(
* This class originated with the 'Stuck in a mode' problem, where far too many
* users get into a mode without realising, and don't know how to get out.
* It is a band-aid, and we should do more towards a full and proper solution
* where there are fewer special modes, and they don't persisit.
* where there are fewer special modes, and they don't persist.
*/
class QuickFixDialog : public wxDialogWrapper
{

View File

@ -262,7 +262,7 @@ void DevicePrefs::OnHost(wxCommandEvent & e)
device = MakeDeviceSourceString(&inMaps[i]);
devindex = mRecord->Append(device);
// We need to const cast here because SetClientData is a wx function
// It is okay beause the original variable is non-const.
// It is okay because the original variable is non-const.
mRecord->SetClientData(devindex, const_cast<DeviceSourceMap *>(&inMaps[i]));
if (device == recDevice) { /* if this is the default device, select it */
mRecord->SetSelection(devindex);

View File

@ -302,7 +302,7 @@ void SelectionBar::Populate()
// It works around a wxWidgets-on-Windows RadioButton bug, where tabbing
// into the radiobutton group jumps to selecting the first item in the
// group even if some other item had been selected.
// It is an important bug to work around for sceen reader users, who use TAB
// It is an important bug to work around for screen reader users, who use TAB
// a lot in navigation.
// More about the bug here:
// https://forums.wxwidgets.org/viewtopic.php?t=41120
@ -355,7 +355,7 @@ void SelectionBar::UpdatePrefs()
// If necessary we can drive the SelectionBar mRate via the Project
// calling our SetRate().
// As of 13-Sep-2018, changes to the sample rate pref will only affect
// creation of new projects, not the smaple rate in existing ones.
// creation of new projects, not the sample rate in existing ones.
wxCommandEvent e;
e.SetInt(mStartTime->GetFormatIndex());

View File

@ -235,7 +235,7 @@ void ToolBarResizer::OnMotion( wxMouseEvent & event )
// Adjust the size based on updated mouse position.
r.width = ( pos.x - mResizeOffset.x ) - r.x;
// Keep it within max size, if specificed
// Keep it within max size, if specified
if( maxsz != wxDefaultSize )
{
if( r.width > maxsz.x )

View File

@ -214,7 +214,7 @@ void ToolFrame::OnMotion( wxMouseEvent & event )
rect.SetBottomRight( pos );
// Keep it within max size, if specificed
// Keep it within max size, if specified
wxSize maxsz = mBar->GetMaxSize();
if (maxsz != wxDefaultSize)
{

View File

@ -266,7 +266,7 @@ void FormatMenuTable::OnFormatChange(wxCommandEvent & event)
// Below is the lambda function that is passed along the call chain to
// the Sequence::ConvertToSampleFormat. This callback function is used
// to report the convertion progress and update the progress dialog.
// to report the conversion progress and update the progress dialog.
auto progressUpdate = [&progress, &totalSamples, &processedSamples]
(size_t newlyProcessedCount)->void
{

View File

@ -792,7 +792,7 @@ void DrawClipWaveform(TrackPanelDrawingContext &context,
}
// TODO Add a comment to say what this loop does.
// Possily make it into a subroutine.
// Possibly make it into a subroutine.
for (unsigned ii = 0; ii < nPortions; ++ii) {
WavePortion &portion = portions[ii];
const bool showIndividualSamples = portion.averageZoom > threshold1;

View File

@ -552,7 +552,7 @@ int FileDialog::ShowModal()
// makes things more convenient:
[sPanel setCanCreateDirectories:YES];
[sPanel setMessage:cf.AsNSString()];
// if we should be able to descend into pacakges we must somehow
// if we should be able to descend into packages we must somehow
// be able to pass this in
[sPanel setTreatsFilePackagesAsDirectories:NO];
[sPanel setCanSelectHiddenExtension:YES];

View File

@ -995,7 +995,7 @@ KeyView::RefreshLines(bool bSort)
node.line = linecnt++;
mLines.push_back(&node);
// If this node is not open, then skip all of its decendants
// If this node is not open, then skip all of its descendants
if (!node.isopen)
{
bool iscat = node.iscat;

View File

@ -79,7 +79,7 @@ in the selection bar of Audacity.
3758.5 seconds, "*:060:060 and .24 frames" -> "1:02:38 and 12 frames"
Note that the decimal '.' is associated with the delimeter, not
Note that the decimal '.' is associated with the delimiter, not
with the 24.
Additionally, the special character '#' can be used in place of a number
@ -124,7 +124,7 @@ in the selection bar of Audacity.
- Any non-numeric characters before the first field are treated
as a prefix, and will be displayed to the left of the first field.
- A delimiter ending in '.' is treated specially. All fields after
this delimeter are fractional fields, after the decimal point.
this delimiter are fractional fields, after the decimal point.
- The '|' character is treated as a special delimiter. The number
to the right of this character (which is allowed to contain a
decimal point) is treated as a scaling factor. The number is

View File

@ -64,7 +64,7 @@ Notice that the zoom guidelines, the focused track highlight,
and snap guidelines could be drawn directly to the screen rather than to
the bitmap, generally eliminating redraw work.
One problem is slider udpates. Sliders are in the left area of the track
One problem is slider updates. Sliders are in the left area of the track
panel. They are not wxWindows like wxSliders, but instead are just drawn
on the TrackPanel. When slider state changes, *all* tracks do a full
refresh, including recomputing the backing store. It would make more sense

View File

@ -242,7 +242,7 @@ public:
/*
The following macros make it easy to attach a popup menu to a window.
Exmple of usage:
Example of usage:
In class MyTable (maybe in the private section),
which inherits from PopupMenuTable,

View File

@ -30,7 +30,7 @@ class XMLValueChecker
public:
// "Good" means well-formed and for the file-related functions, names an existing file or folder.
// These are used in HandleXMLTag and BuildFomXML methods to check the input for
// security vulnerabilites, per the NGS report for UmixIt.
// security vulnerabilities, per the NGS report for UmixIt.
static bool IsGoodString(const wxString & str);
// Labels are allowed to be very long. At some future date we will format long labels nicely.
static bool IsGoodLongString(const wxString & str);
@ -48,7 +48,7 @@ public:
* duplicate that testing, so use wxString::ToLong after IsGoodInt, not just
* atoi.
* @param strInt The string to test
* @return true if the string is convertable, false if not
* @return true if the string is convertible, false if not
*/
static bool IsGoodInt(const wxString & strInt);
/** @brief Check that the supplied string can be converted to a 64bit
@ -58,7 +58,7 @@ public:
* doesn't duplicate that testing, so use wxString::ToLongLong after IsGoodInt64
* not just atoll.
* @param strInt The string to test
* @return true if the string is convertable, false if not
* @return true if the string is convertible, false if not
*/
static bool IsGoodInt64(const wxString & strInt);
static bool IsGoodIntForRange(const wxString & strInt, const wxString & strMAXABS);
@ -108,7 +108,7 @@ class AUDACITY_DLL_API XMLTagHandler /* not final */ {
// handle this child, return NULL and it will be ignored.
virtual XMLTagHandler *HandleXMLChild(const wxChar *tag) = 0;
// These functions recieve data from expat. They do charset
// These functions receive data from expat. They do charset
// conversion and then pass the data to the handlers above.
bool ReadXMLTag(const char *tag, const char **attrs);
void ReadXMLEndTag(const char *tag);