summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorluzpaz <kunda@scribus.net>2017-12-31 08:20:30 -0500
committerluz paz <luzpaz@users.noreply.github.com>2018-04-06 08:59:46 -0400
commitc9791f01cab4682b124e0e0255efc1d44fad38ba (patch)
tree5bd82e76e94594b4b29780f003162ee7c8c824e5 /src
parent4ab51192dbff802742fda32642b8e996aa41d9c5 (diff)
Typo fixes
+ User facing typos + trivial source comment typos + superflous double whitespace issues + found redundant comment typo Found using `codespell -q 3 --skip="./build/wix/Localization,./res/translations,./lib" -I ../mixxx-whitelist.txt` where the contents of the whitelist were: ``` iff freee substract ```
Diffstat (limited to 'src')
-rw-r--r--src/control/control.h2
-rw-r--r--src/control/controlbehavior.cpp2
-rw-r--r--src/control/controlbehavior.h2
-rw-r--r--src/control/controlvalue.h6
-rw-r--r--src/controllers/controllerenumerator.h2
-rw-r--r--src/controllers/midi/midimessage.h2
-rw-r--r--src/effects/native/autopaneffect.cpp2
-rw-r--r--src/encoder/encoderffmpegcore.h2
-rw-r--r--src/encoder/encodermp3.cpp4
-rw-r--r--src/encoder/encodervorbis.cpp2
-rw-r--r--src/engine/cuecontrol.cpp2
-rw-r--r--src/engine/enginebuffer.cpp2
-rw-r--r--src/engine/enginebufferscalelinear.cpp2
-rw-r--r--src/engine/keycontrol.h2
-rw-r--r--src/engine/positionscratchcontroller.cpp2
-rw-r--r--src/library/basesqltablemodel.cpp2
-rw-r--r--src/library/browse/foldertreemodel.cpp2
-rw-r--r--src/library/coverartdelegate.h2
-rw-r--r--src/library/crate/cratestorage.cpp2
-rw-r--r--src/library/dao/playlistdao.cpp4
-rw-r--r--src/library/export/trackexportworker.cpp2
-rw-r--r--src/library/itunes/itunesfeature.cpp2
-rw-r--r--src/library/library.cpp2
-rw-r--r--src/library/parsercsv.cpp2
-rw-r--r--src/library/parsercsv.h2
-rw-r--r--src/library/parserm3u.cpp6
-rw-r--r--src/library/parserpls.cpp4
-rw-r--r--src/library/rhythmbox/rhythmboxfeature.cpp2
-rw-r--r--src/library/scanner/libraryscanner.cpp6
-rw-r--r--src/library/setlogfeature.cpp2
-rw-r--r--src/library/traktor/traktorfeature.cpp8
-rw-r--r--src/mixer/basetrackplayer.cpp2
-rw-r--r--src/mixxx.h2
-rw-r--r--src/preferences/broadcastsettings.cpp2
-rw-r--r--src/preferences/dialog/dlgprefsound.cpp2
-rw-r--r--src/preferences/settingsmanager.cpp2
-rw-r--r--src/skin/launchimage.h2
-rw-r--r--src/skin/legacyskinparser.cpp2
-rw-r--r--src/soundio/sounddevicenetwork.cpp4
-rw-r--r--src/soundio/sounddeviceportaudio.cpp4
-rw-r--r--src/soundio/soundmanager.cpp6
-rw-r--r--src/sources/audiosource.cpp2
-rw-r--r--src/sources/metadatasourcetaglib.cpp2
-rw-r--r--src/sources/soundsourceffmpeg.cpp8
-rw-r--r--src/sources/v1/legacyaudiosource.h2
-rw-r--r--src/test/broadcastprofile_test.cpp2
-rw-r--r--src/test/enginebuffertest.cpp2
-rw-r--r--src/test/looping_control_test.cpp4
-rw-r--r--src/test/portmidicontroller_test.cpp2
-rw-r--r--src/test/schemamanager_test.cpp2
-rw-r--r--src/track/beatmap.cpp4
-rw-r--r--src/track/beats.h2
-rw-r--r--src/track/beatutils.cpp6
-rw-r--r--src/util/battery/batterywindows.cpp4
-rw-r--r--src/util/db/dbconnectionpool.h2
-rw-r--r--src/util/db/fwdsqlqueryselectresult.cpp2
-rw-r--r--src/util/math.h2
-rw-r--r--src/util/sample.cpp2
-rw-r--r--src/waveform/visualplayposition.cpp2
-rw-r--r--src/waveform/visualplayposition.h4
-rw-r--r--src/waveform/widgets/glslwaveformwidget.cpp2
-rw-r--r--src/waveform/widgets/waveformwidgetabstract.h2
-rw-r--r--src/widget/weffectparameterknobcomposed.h2
-rw-r--r--src/widget/wlibrarysidebar.cpp2
-rw-r--r--src/widget/wpushbutton.cpp2
-rw-r--r--src/widget/wspinny.cpp2
-rw-r--r--src/widget/wtracktableview.cpp6
-rw-r--r--src/widget/wtracktableviewheader.cpp2
68 files changed, 95 insertions, 95 deletions
diff --git a/src/control/control.h b/src/control/control.h
index ea3fded2f7..28773663c6 100644
--- a/src/control/control.h
+++ b/src/control/control.h
@@ -141,7 +141,7 @@ class ControlDoublePrivate : public QObject {
// User-visible, i18n name for what the control is.
QString m_name;
- // User-visible, i18n descripton for what the control does.
+ // User-visible, i18n description for what the control does.
QString m_description;
// Whether to ignore sets which would have no effect.
diff --git a/src/control/controlbehavior.cpp b/src/control/controlbehavior.cpp
index 799e5d20c6..89f294d7ef 100644
--- a/src/control/controlbehavior.cpp
+++ b/src/control/controlbehavior.cpp
@@ -238,7 +238,7 @@ double ControlAudioTaperPotBehavior::midiToParameter(double midiValue) {
dParam = midiValue /
(127.0 + m_midiCorrection / m_neutralParameter);
} else {
- // m_midicorrection is allways < 1, so NaN check required
+ // m_midicorrection is always < 1, so NaN check required
dParam = (midiValue - m_midiCorrection / m_neutralParameter) /
(127.0 - m_midiCorrection / m_neutralParameter);
}
diff --git a/src/control/controlbehavior.h b/src/control/controlbehavior.h
index a1046bb36f..08f48b724b 100644
--- a/src/control/controlbehavior.h
+++ b/src/control/controlbehavior.h
@@ -116,7 +116,7 @@ class ControlAudioTaperPotBehavior : public ControlPotmeterBehavior {
double m_offset;
// ensures that the neutral position on a integer midi value
// This value is subtracted from the Midi value at neutral position
- // and is allways < 1
+ // and is always < 1
double m_midiCorrection;
};
diff --git a/src/control/controlvalue.h b/src/control/controlvalue.h
index 8819ce92f5..7a13247f16 100644
--- a/src/control/controlvalue.h
+++ b/src/control/controlvalue.h
@@ -12,7 +12,7 @@
// for lock free access, this value has to be >= the number of value using threads
// value must be a fraction of an integer
const int cRingSize = 8;
-// there are basicly unlimited readers allowed at each ring element
+// there are basically unlimited readers allowed at each ring element
// but we have to count them so max() is just fine.
// NOTE(rryan): Wrapping max with parentheses avoids conflict with the max macro
// defined in windows.h.
@@ -76,9 +76,9 @@ class ControlValueAtomicBase {
// 2) the formerly current value is locked by a writer
// Case 1 does not happen because we have enough (0x7fffffff) reader slots.
// Case 2 happens when the a reader is delayed after reading the
- // m_currentIndex and in the mean while a reader locks the formaly current value
+ // m_currentIndex and in the mean while a reader locks the formally current value
// because it has written cRingSize times. Reading the less recent value will fix
- // it because it is now actualy the current value.
+ // it because it is now actually the current value.
index = (index - 1) % (cRingSize);
}
return value;
diff --git a/src/controllers/controllerenumerator.h b/src/controllers/controllerenumerator.h
index f2378e8197..b94c538389 100644
--- a/src/controllers/controllerenumerator.h
+++ b/src/controllers/controllerenumerator.h
@@ -24,7 +24,7 @@ class ControllerEnumerator : public QObject {
virtual QList<Controller*> queryDevices() = 0;
// Sub-classes return true here if their devices must be polled to get data
- // from the controler.
+ // from the controller.
virtual bool needPolling() {
return false;
}
diff --git a/src/controllers/midi/midimessage.h b/src/controllers/midi/midimessage.h
index 57aa5e2748..5e04d07ef3 100644
--- a/src/controllers/midi/midimessage.h
+++ b/src/controllers/midi/midimessage.h
@@ -81,7 +81,7 @@ struct MidiOptions {
bool rot64_fast : 1;
bool diff : 1;
bool button : 1; // Button Down (!=00) and Button Up (00) events happen together
- bool sw : 1; // button down (!=00) and button up (00) events happen seperately
+ bool sw : 1; // button down (!=00) and button up (00) events happen separately
bool spread64 : 1; // accelerated difference from 64
bool herc_jog : 1; // generic Hercules range correction 0x01 -> +1; 0x7f -> -1
bool selectknob : 1; // relative knob which can be turned forever and outputs a signed value
diff --git a/src/effects/native/autopaneffect.cpp b/src/effects/native/autopaneffect.cpp
index ea368b9911..4df379f659 100644
--- a/src/effects/native/autopaneffect.cpp
+++ b/src/effects/native/autopaneffect.cpp
@@ -140,7 +140,7 @@ void AutoPanEffect::processChannel(
// 1 / ( 1 - 2 * stepfrac)
float a = smoothing != 0.5f ? 1.0f / (1.0f - smoothing * 2.0f) : 1.0f;
- // size of a segment of slope (controled by the "smoothing" parameter)
+ // size of a segment of slope (controlled by the "smoothing" parameter)
float u = (0.5f - smoothing) / 2.0f;
gs.frac.setRampingThreshold(kPositionRampingThreshold);
diff --git a/src/encoder/encoderffmpegcore.h b/src/encoder/encoderffmpegcore.h
index a9ed018b16..908b5d3ff1 100644
--- a/src/encoder/encoderffmpegcore.h
+++ b/src/encoder/encoderffmpegcore.h
@@ -25,7 +25,7 @@ extern "C" {
#include <libavutil/avutil.h>
#endif
-// Compability
+// Compatibility
#include <libavutil/mathematics.h>
#include <libavutil/opt.h>
}
diff --git a/src/encoder/encodermp3.cpp b/src/encoder/encodermp3.cpp
index 01fa91e686..7503a48635 100644
--- a/src/encoder/encodermp3.cpp
+++ b/src/encoder/encodermp3.cpp
@@ -24,7 +24,7 @@
#include "errordialoghandler.h"
// Automatic thresholds for switching the encoder to mono
-// They have been choosen by testing and to keep the same number
+// They have been chosen by testing and to keep the same number
// of values for the slider.
// The threshold of bitrate (CBR/ABR) at which the encoder
// with switch to mono encoding
@@ -393,7 +393,7 @@ int EncoderMp3::initEncoder(int samplerate, QString errorMessage) {
}
unsigned long samplerate_in = samplerate;
- // samplerate_out 0 means "let LAME pick the appropiate one"
+ // samplerate_out 0 means "let LAME pick the appropriate one"
unsigned long samplerate_out = (samplerate_in > 48000 ? 48000 : 0);
m_lameFlags = lame_init();
diff --git a/src/encoder/encodervorbis.cpp b/src/encoder/encodervorbis.cpp
index a386232473..fa7d053bca 100644
--- a/src/encoder/encodervorbis.cpp
+++ b/src/encoder/encodervorbis.cpp
@@ -27,7 +27,7 @@ http://svn.xiph.org/trunk/vorbis/examples/encoder_example.c
#include "errordialoghandler.h"
// Automatic thresholds for switching the encoder to mono
-// They have been choosen by testing and to keep the same number
+// They have been chosen by testing and to keep the same number
// of values for the slider.
// The threshold of bitrate at which the encoder
// with switch to mono encoding
diff --git a/src/engine/cuecontrol.cpp b/src/engine/cuecontrol.cpp
index 2a4436a1a6..6eeb4ef19f 100644
--- a/src/engine/cuecontrol.cpp
+++ b/src/engine/cuecontrol.cpp
@@ -998,7 +998,7 @@ bool CueControl::isPlayingByPlayButton() {
ConfigKey HotcueControl::keyForControl(int hotcue, const char* name) {
ConfigKey key;
key.group = m_group;
- // Add one to hotcue so that we dont have a hotcue_0
+ // Add one to hotcue so that we don't have a hotcue_0
key.item = QLatin1String("hotcue_") % QString::number(hotcue+1) % "_" % name;
return key;
}
diff --git a/src/engine/enginebuffer.cpp b/src/engine/enginebuffer.cpp
index 1218f017b6..8fe8b2b242 100644
--- a/src/engine/enginebuffer.cpp
+++ b/src/engine/enginebuffer.cpp
@@ -886,7 +886,7 @@ void EngineBuffer::process(CSAMPLE* pOutput, const int iBufferSize) {
// and its distance to the original track pitch
//
// The Pitch_Adjust knob does not reflect the speedSliderPitchRatio.
- // So it is is useful for controller mappings, because it is not
+ // So it is useful for controller mappings, because it is not
// changed by the speed slider or keylock.
// In the second part all other speed changing controls are processed.
diff --git a/src/engine/enginebufferscalelinear.cpp b/src/engine/enginebufferscalelinear.cpp
index 23c1f9c66f..4a186e4d87 100644
--- a/src/engine/enginebufferscalelinear.cpp
+++ b/src/engine/enginebufferscalelinear.cpp
@@ -238,7 +238,7 @@ SINT EngineBufferScaleLinear::do_scale(CSAMPLE* buf, SINT buf_size) {
// Hot frame loop
while (i < buf_size) {
- // shift indicies
+ // shift indices
m_dCurrentFrame = m_dNextFrame;
// Because our index is a float value, we're going to be interpolating
diff --git a/src/engine/keycontrol.h b/src/engine/keycontrol.h
index b97f3567c2..947c647ebc 100644
--- a/src/engine/keycontrol.h
+++ b/src/engine/keycontrol.h
@@ -14,7 +14,7 @@ class KeyControl : public EngineControl {
struct PitchTempoRatio {
// this is the calculated value used by engine buffer for pitch
- // by default is is equal to the tempoRatio set by the speed slider
+ // by default it is equal to the tempoRatio set by the speed slider
double pitchRatio;
// this is the value of the speed slider and speed slider
// effecting controls at the moment of calculation
diff --git a/src/engine/positionscratchcontroller.cpp b/src/engine/positionscratchcontroller.cpp
index 4d9df9eb5c..a35269d0de 100644
--- a/src/engine/positionscratchcontroller.cpp
+++ b/src/engine/positionscratchcontroller.cpp
@@ -107,7 +107,7 @@ void PositionScratchController::process(double currentSample, double releaseRate
// Sample Mouse with fixed timing intervals to iron out significant jitters
// that are added on the way from mouse to engine thread
- // Normaly the Mouse is sampled every 8 ms so with this 16 ms window we
+ // Normally the Mouse is sampled every 8 ms so with this 16 ms window we
// have 0 ... 3 samples. The remaining jitter is ironed by the following IIR
// lowpass filter
const double m_dMouseSampeIntervall = 0.016;
diff --git a/src/library/basesqltablemodel.cpp b/src/library/basesqltablemodel.cpp
index 3b79392348..7beac213fd 100644
--- a/src/library/basesqltablemodel.cpp
+++ b/src/library/basesqltablemodel.cpp
@@ -512,7 +512,7 @@ void BaseSqlTableModel::setSort(int column, Qt::SortOrder order) {
// we have two selects for sorting, since keeping the select history
// across the two selects is hard, we do this only for the trackSource
- // this is OK, because the colums of the table are virtual in case of
+ // this is OK, because the columns of the table are virtual in case of
// preview column or individual like playlist track number so that we
// do not need the history anyway.
diff --git a/src/library/browse/foldertreemodel.cpp b/src/library/browse/foldertreemodel.cpp
index 3c51828f15..a91cb8eae0 100644
--- a/src/library/browse/foldertreemodel.cpp
+++ b/src/library/browse/foldertreemodel.cpp
@@ -34,7 +34,7 @@ FolderTreeModel::~FolderTreeModel() {
*/
bool FolderTreeModel::hasChildren(const QModelIndex& parent) const {
TreeItem *item = static_cast<TreeItem*>(parent.internalPointer());
- /* Usually the child count is 0 becuase we do lazy initalization
+ /* Usually the child count is 0 because we do lazy initialization
* However, for, buid-in items such as 'Quick Links' there exist
* child items at init time
*/
diff --git a/src/library/coverartdelegate.h b/src/library/coverartdelegate.h
index d510c1d006..b1d500ac47 100644
--- a/src/library/coverartdelegate.h
+++ b/src/library/coverartdelegate.h
@@ -28,7 +28,7 @@ class CoverArtDelegate : public QStyledItemDelegate {
// It means that in this cases it will just draw
// covers which are already in the pixmapcache.
//
- // It is useful to handle cases when the user scoll down
+ // It is useful to handle cases when the user scroll down
// very fast or when they hold an arrow key, because
// in these cases 'paint()' would be called very often
// and it might make CoverDelegate starts many searches,
diff --git a/src/library/crate/cratestorage.cpp b/src/library/crate/cratestorage.cpp
index 05afdfcde2..2b8ee2ae67 100644
--- a/src/library/crate/cratestorage.cpp
+++ b/src/library/crate/cratestorage.cpp
@@ -538,7 +538,7 @@ QSet<CrateId> CrateStorage::collectCrateIdsOfTracks(const QList<TrackId>& trackI
QSet<CrateId> trackCrates;
for (const auto& trackId: trackIds) {
// NOTE(uklotzde): The query result does not need to be sorted by crate id
- // here. But since the coresponding FK column is indexed the impact on the
+ // here. But since the corresponding FK column is indexed the impact on the
// performance should be negligible. By reusing an existing query we reduce
// the amount of code and the number of prepared SQL queries.
CrateTrackSelectResult crateTracks(selectTrackCratesSorted(trackId));
diff --git a/src/library/dao/playlistdao.cpp b/src/library/dao/playlistdao.cpp
index 23cd96d7ed..e05a524420 100644
--- a/src/library/dao/playlistdao.cpp
+++ b/src/library/dao/playlistdao.cpp
@@ -791,11 +791,11 @@ void PlaylistDAO::moveTrack(const int playlistId, const int oldPosition, const i
// Case 2: destination > source (newPos > oldPos)
// 1) Set position=-1 where pos=source -- Give track a dummy index again.
// 2) Decrement position where pos > source AND pos <= dest
- // 3) Set postion=dest where pos=-1 -- Move that track from dummy pos to final destination
+ // 3) Set position=dest where pos=-1 -- Move that track from dummy pos to final destination
QString queryString;
- // Move moved track to dummy position -1
+ // Move moved track to dummy position -1
queryString = QString("UPDATE PlaylistTracks SET position=-1 "
"WHERE position=%1 AND "
"playlist_id=%2").arg(QString::number(oldPosition),
diff --git a/src/library/export/trackexportworker.cpp b/src/library/export/trackexportworker.cpp
index f4ec52fc25..2c14617fd3 100644
--- a/src/library/export/trackexportworker.cpp
+++ b/src/library/export/trackexportworker.cpp
@@ -179,7 +179,7 @@ TrackExportWorker::OverwriteAnswer TrackExportWorker::makeOverwriteRequest(
m_overwriteMode = OverwriteMode::OVERWRITE_ALL;
break;
case OverwriteAnswer::CANCEL:
- // Handle cancelation as a result of the question.
+ // Handle cancellation as a result of the question.
m_errorMessage = tr("Export process was canceled");
stop();
break;
diff --git a/src/library/itunes/itunesfeature.cpp b/src/library/itunes/itunesfeature.cpp
index fa13586498..161863f13a 100644
--- a/src/library/itunes/itunesfeature.cpp
+++ b/src/library/itunes/itunesfeature.cpp
@@ -156,7 +156,7 @@ void ITunesFeature::activate(bool forceReload) {
settings.setValue(ITDB_PATH_KEY, m_dbfile);
}
m_isActivated = true;
- // Ususally the maximum number of threads
+ // Usually the maximum number of threads
// is > 2 depending on the CPU cores
// Unfortunately, within VirtualBox
// the maximum number of allowed threads
diff --git a/src/library/library.cpp b/src/library/library.cpp
index 5a22fe9f84..7d94a9c9d4 100644
--- a/src/library/library.cpp
+++ b/src/library/library.cpp
@@ -52,7 +52,7 @@ const QString Library::kConfigGroup("[Library]");
//static
const ConfigKey Library::kConfigKeyRepairDatabaseOnNextRestart(kConfigGroup, "RepairDatabaseOnNextRestart");
-// This is is the name which we use to register the WTrackTableView with the
+// This is the name which we use to register the WTrackTableView with the
// WLibrary
const QString Library::m_sTrackViewName = QString("WTrackTableView");
diff --git a/src/library/parsercsv.cpp b/src/library/parsercsv.cpp
index 16ffd1787b..f26ea33015 100644
--- a/src/library/parsercsv.cpp
+++ b/src/library/parsercsv.cpp
@@ -1,7 +1,7 @@
//
// C++ Implementation: parsercsv
//
-// Description: module to parse Comma-Separated Values (CSV) formated playlists (rfc4180)
+// Description: module to parse Comma-Separated Values (CSV) formatted playlists (rfc4180)
//
//
// Author: Ingo Kossyk <kossyki@cs.tu-berlin.de>, (C) 2004
diff --git a/src/library/parsercsv.h b/src/library/parsercsv.h
index 8451a146e2..57f92a5f6c 100644
--- a/src/library/parsercsv.h
+++ b/src/library/parsercsv.h
@@ -1,7 +1,7 @@
//
// C++ Interface: parserm3u
//
-// Description: Interface header parse Comma-Separated Values (CSV) formated playlists (rfc4180)
+// Description: Interface header parse Comma-Separated Values (CSV) formatted playlists (rfc4180)
//
//
// Author: Ingo Kossyk <kossyki@cs.tu-berlin.de>, (C) 2004
diff --git a/src/library/parserm3u.cpp b/src/library/parserm3u.cpp
index 1e1c7928be..9483a695e1 100644
--- a/src/library/parserm3u.cpp
+++ b/src/library/parserm3u.cpp
@@ -1,7 +1,7 @@
//
// C++ Implementation: parserm3u
//
-// Description: module to parse m3u(plaintext) formated playlists
+// Description: module to parse m3u(plaintext) formatted playlists
//
//
// Author: Ingo Kossyk <kossyki@cs.tu-berlin.de>, (C) 2004
@@ -25,14 +25,14 @@
/**
ToDo:
- - parse ALL informations from the pls file if available ,
+ - parse ALL information from the pls file if available ,
not only the filepath;
Userinformation :
The M3U format is just a headerless plaintext format
where every line of text either represents
a file location or a comment. comments are being
- preceeded by a '#'. This parser will try to parse all
+ preceded by a '#'. Th