Skip to content

Commit

Permalink
Source typos
Browse files Browse the repository at this point in the history
Found via `codespell` and `grep`
  • Loading branch information
luzpaz committed Jun 10, 2018
1 parent 64bd9db commit aeb25c3
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion lib/fidlib/fidrf_jit.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ static unsigned long int do_hash(unsigned char *, unsigned long int, unsigned lo
//

static char *r_buf; // Buffer address
static char *r_end; // Curent end of buffer
static char *r_end; // Current end of buffer
static char *r_cp; // Current write-position
static char *r_lab; // Current loop-back label, or 0
static int r_loop; // Loop count
Expand Down
2 changes: 1 addition & 1 deletion plugins/soundsourcem4a/soundsourcem4a.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const MP4SampleId kSampleBlockIdMin = 1;
// https://developer.apple.com/library/ios/technotes/tn2258/_index.html
// "It must also be assumed that without an explicit value, the playback
// system will trim 2112 samples from the AAC decoder output when starting
// playback from any point in the bistream."
// playback from any point in the bitstream."
const SINT kNumberOfPrefetchFrames = 2112;

// The TrackId is a 1-based index of the tracks in an MP4 file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ constexpr SINT kLeftoverSize = 4096; // in CSAMPLE's, this seems to be the size
// https://developer.apple.com/library/ios/technotes/tn2258/_index.html
// "It must also be assumed that without an explicit value, the playback
// system will trim 2112 samples from the AAC decoder output when starting
// playback from any point in the bistream."
// playback from any point in the bitstream."
constexpr SINT kNumberOfPrefetchFrames = 2112;

// Only read the first audio stream
Expand Down
2 changes: 1 addition & 1 deletion src/analyzer/analyzerwaveform.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class AnalyzerWaveform : public Analyzer {
void finalize(TrackPointer tio) override;

private:
void storeCurentStridePower();
void storeCurrentStridePower();
void resetCurrentStride();

void createFilters(int sampleRate);
Expand Down
12 changes: 6 additions & 6 deletions src/control/controlbehavior.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ double ControlLogPotmeterBehavior::valueToParameter(double dValue) {
} else if (dValue < m_dMinValue) {
dValue = m_dMinValue;
}
double linPrameter = (dValue - m_dMinValue) / m_dValueRange;
double dbParamter = ratio2db(linPrameter + m_minOffset * (1 - linPrameter));
return 1 - (dbParamter / m_minDB);
double linParameter = (dValue - m_dMinValue) / m_dValueRange;
double dbParameter = ratio2db(linParameter + m_minOffset * (1 - linParameter));
return 1 - (dbParameter / m_minDB);
}

double ControlLogPotmeterBehavior::parameterToValue(double dParam) {
double dbParamter = (1 - dParam) * m_minDB;
double linPrameter = (db2ratio(dbParamter) - m_minOffset) / (1 - m_minOffset);
return m_dMinValue + (linPrameter * m_dValueRange);
double dbParameter = (1 - dParam) * m_minDB;
double linParameter = (db2ratio(dbParameter) - m_minOffset) / (1 - m_minOffset);
return m_dMinValue + (linParameter * m_dValueRange);
}

ControlLogInvPotmeterBehavior::ControlLogInvPotmeterBehavior(
Expand Down
4 changes: 2 additions & 2 deletions src/encoder/encodermp3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
// of values for the slider.
// The threshold of bitrate (CBR/ABR) at which the encoder
// with switch to mono encoding
const int EncoderMp3::MONO_BITRATE_TRESHOLD = 100;
const int EncoderMp3::MONO_BITRATE_THRESHOLD = 100;
// The threshold of quality (VBR) at which the encoder
// with switch to mono encoding. Values from 0 to 6 encode at 44Khz
const int EncoderMp3::MONO_VBR_THRESHOLD = 8;
Expand Down Expand Up @@ -269,7 +269,7 @@ void EncoderMp3::setEncoderSettings(const EncoderSettings& settings)
m_encoding_mode = (modeoption==0) ? vbr_off : (modeoption==1) ? vbr_abr : vbr_default;

if (m_encoding_mode == vbr_off) {
if (m_bitrate > MONO_BITRATE_TRESHOLD ) {
if (m_bitrate > MONO_BITRATE_THRESHOLD ) {
m_stereo_mode = JOINT_STEREO;
} else {
m_stereo_mode = MONO;
Expand Down
2 changes: 1 addition & 1 deletion src/encoder/encodermp3.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class EncoderCallback;

class EncoderMp3 : public Encoder {
public:
static const int MONO_BITRATE_TRESHOLD;
static const int MONO_BITRATE_THRESHOLD;
static const int MONO_VBR_THRESHOLD;
static const int MONO_VBR_OFFSET;

Expand Down
4 changes: 2 additions & 2 deletions src/encoder/encodervorbis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ A lot of stuff has been stolen from:
// of values for the slider.
// The threshold of bitrate at which the encoder
// with switch to mono encoding
const int EncoderVorbis::MONO_BITRATE_TRESHOLD = 70;
const int EncoderVorbis::MONO_BITRATE_THRESHOLD = 70;


EncoderVorbis::EncoderVorbis(EncoderCallback* pCallback)
Expand Down Expand Up @@ -65,7 +65,7 @@ void EncoderVorbis::setEncoderSettings(const EncoderSettings& settings)
case EncoderSettings::ChannelMode::STEREO: m_channels = 2; break;
case EncoderSettings::ChannelMode::AUTOMATIC: // fallthrough
default:
if (m_bitrate > MONO_BITRATE_TRESHOLD ) {
if (m_bitrate > MONO_BITRATE_THRESHOLD ) {
m_channels = 2;
}
else {
Expand Down
2 changes: 1 addition & 1 deletion src/encoder/encodervorbis.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class EncoderCallback;

class EncoderVorbis : public Encoder {
public:
static const int MONO_BITRATE_TRESHOLD;
static const int MONO_BITRATE_THRESHOLD;

EncoderVorbis(EncoderCallback* pCallback=nullptr);
virtual ~EncoderVorbis();
Expand Down
2 changes: 1 addition & 1 deletion src/engine/cachingreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mixxx::Logger kLogger("CachingReader");

// This is the default hint frameCount that is adopted in case of Hint::kFrameCountForward and
// Hint::kFrameCountBackward count is provided. It matches 23 ms @ 44.1 kHz
// TODO() Do we suffer chache misses if we use an audio buffer of above 23 ms?
// TODO() Do we suffer cache misses if we use an audio buffer of above 23 ms?
const SINT kDefaultHintFrames = 1024;

// currently CachingReaderWorker::kCachingReaderChunkLength is 65536 (0x10000);
Expand Down
18 changes: 9 additions & 9 deletions src/track/globaltrackcache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,8 @@ TrackRef GlobalTrackCache::initTrackId(
}

void GlobalTrackCache::evictAndSave(
GlobalTrackCacheEntryPointer chacheEntryPtr) {
DEBUG_ASSERT(chacheEntryPtr);
GlobalTrackCacheEntryPointer cacheEntryPtr) {
DEBUG_ASSERT(cacheEntryPtr);

// We need to besure this is always called from the main thread
// because we can only access the DB from it and we must not loose the
Expand All @@ -592,33 +592,33 @@ void GlobalTrackCache::evictAndSave(

GlobalTrackCacheLocker cacheLocker;

if (!chacheEntryPtr->getSavingWeakPtr().expired()) {
if (!cacheEntryPtr->getSavingWeakPtr().expired()) {
// We have handed out (revived) this track again after our reference count
// drops to zero and before acquire the lock at the beginning of this function
if (debugLogEnabled()) {
kLogger.debug()
<< "Skip to evict and save a revived or reallocated track"
<< chacheEntryPtr->getPlainPtr();
<< cacheEntryPtr->getPlainPtr();
}
return;
}

if (!evict(chacheEntryPtr->getPlainPtr())) {
if (!evict(cacheEntryPtr->getPlainPtr())) {
// A scond deleter has already evict the track from cache after our
// reference count drops to zero and before acquire the lock at the
// beginning of this function
if (debugLogEnabled()) {
kLogger.debug()
<< "Skip to save an already evicted track"
<< chacheEntryPtr->getPlainPtr();
<< cacheEntryPtr->getPlainPtr();
}
return;
}

DEBUG_ASSERT(isEvicted(chacheEntryPtr->getPlainPtr()));
m_pSaver->saveCachedTrack(chacheEntryPtr->getPlainPtr());
DEBUG_ASSERT(isEvicted(cacheEntryPtr->getPlainPtr()));
m_pSaver->saveCachedTrack(cacheEntryPtr->getPlainPtr());

// here the chacheEntryPtr goes out of scope, the cache is deleted
// here the cacheEntryPtr goes out of scope, the cache is deleted
// including the owned track
}

Expand Down
2 changes: 1 addition & 1 deletion src/track/globaltrackcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class GlobalTrackCache : public QObject {
static void evictAndSaveCachedTrack(GlobalTrackCacheEntryPointer cacheEntryPtr);

private slots:
void evictAndSave(GlobalTrackCacheEntryPointer chacheEntryPtr);
void evictAndSave(GlobalTrackCacheEntryPointer cacheEntryPtr);

private:
friend class GlobalTrackCacheLocker;
Expand Down
4 changes: 2 additions & 2 deletions src/waveform/renderers/glslwaveformrenderersignal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ bool GLSLWaveformRendererSignal::loadTexture() {
// Waveform ensures that getTextureSize is a multiple of
// getTextureStride so there is no rounding here.
int textureWidth = waveform->getTextureStride();
int textureHeigth = waveform->getTextureSize() / waveform->getTextureStride();
int textureHeight = waveform->getTextureSize() / waveform->getTextureStride();

glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, textureWidth, textureHeigth, 0,
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, textureWidth, textureHeight, 0,
GL_RGBA, GL_UNSIGNED_BYTE, data);
int error = glGetError();
if (error)
Expand Down
2 changes: 1 addition & 1 deletion vamp-plugins/dsp/tempotracking/TempoTrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class TempoTrack
double* m_ACoeffs;
double* m_BCoeffs;

// Objetcs/operators declaration
// Objects/operators declaration
Framer m_DFFramer;
DFProcess* m_DFConditioning;
Correlation m_correlator;
Expand Down

0 comments on commit aeb25c3

Please sign in to comment.