mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-13 14:13:32 +02:00
Fix minor typos
This commit is contained in:
committed by
James Crook
parent
f420a546a0
commit
d1ada5f08c
@@ -27,7 +27,7 @@ It's defined in Import.h
|
||||
*//***************************************************************//**
|
||||
|
||||
\class Importer
|
||||
\brief Class which actulaly imports the auido, using functions defined
|
||||
\brief Class which actualy imports the auido, using functions defined
|
||||
in ImportPCM.cpp, ImportMP3.cpp, ImportOGG.cpp, ImportRawData.cpp,
|
||||
and ImportLOF.cpp.
|
||||
|
||||
|
@@ -147,7 +147,7 @@ public:
|
||||
/**
|
||||
* Helper function - uses wxStringTokenizer to tokenize
|
||||
* @str string and appends string-tokens to a list @list.
|
||||
* @mod deifines tokenizer's behaviour.
|
||||
* @mod defines tokenizer's behaviour.
|
||||
*/
|
||||
void StringToList(wxString &str, wxString &delims, wxArrayString &list, wxStringTokenizerMode mod = wxTOKEN_RET_EMPTY_ALL);
|
||||
|
||||
|
@@ -187,7 +187,7 @@ public:
|
||||
const FilePath &Filename, AudacityProject*) override;
|
||||
};
|
||||
|
||||
///! Does acual import, returned by FFmpegImportPlugin::Open
|
||||
///! Does actual import, returned by FFmpegImportPlugin::Open
|
||||
class FFmpegImportFileHandle final : public ImportFileHandle
|
||||
{
|
||||
|
||||
@@ -430,7 +430,7 @@ bool FFmpegImportFileHandle::InitCodecs()
|
||||
continue;
|
||||
}
|
||||
|
||||
// Stream is decodeable and it is audio. Add it and its decription to the arrays
|
||||
// Stream is decodeable and it is audio. Add it and its description to the arrays
|
||||
int duration = 0;
|
||||
if (sc->m_stream->duration > 0)
|
||||
duration = sc->m_stream->duration * sc->m_stream->time_base.num / sc->m_stream->time_base.den;
|
||||
@@ -463,7 +463,7 @@ bool FFmpegImportFileHandle::InitCodecs()
|
||||
}
|
||||
//for video and unknown streams do nothing
|
||||
}
|
||||
//It doesn't really returns false, but GetStreamCount() will return 0 if file is composed entierly of unreadable streams
|
||||
//It doesn't really returns false, but GetStreamCount() will return 0 if file is composed entirely of unreadable streams
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -560,7 +560,7 @@ ProgressResult FFmpegImportFileHandle::Import(TrackFactory *trackFactory,
|
||||
}
|
||||
}
|
||||
// This is the heart of the importing process
|
||||
// The result of Import() to be returend. It will be something other than zero if user canceled or some error appears.
|
||||
// The result of Import() to be returned. It will be something other than zero if user canceled or some error appears.
|
||||
auto res = ProgressResult::Success;
|
||||
|
||||
#ifdef EXPERIMENTAL_OD_FFMPEG
|
||||
|
@@ -503,7 +503,7 @@ ProgressResult FLACImportFileHandle::Import(TrackFactory *trackFactory,
|
||||
mDecoderTask->AddWaveTrack(channel);
|
||||
if(moreThanStereo)
|
||||
{
|
||||
//if we have 3 more channels, they get imported on seperate tracks, so we add individual tasks for each.
|
||||
//if we have 3 more channels, they get imported on separate tracks, so we add individual tasks for each.
|
||||
ODManager::Instance()->AddNewTask(std::move(mDecoderTask));
|
||||
mDecoderTask = std::make_unique<ODDecodeFlacTask>(); //TODO: see if we need to use clone to keep the metadata.
|
||||
}
|
||||
|
@@ -666,7 +666,7 @@ GStreamerImportFileHandle::OnPadAdded(GstPad *pad)
|
||||
// Link them together
|
||||
if (!gst_element_link(c->mConv, c->mSink))
|
||||
{
|
||||
WARN(mPipeline.get(), ("OnPadAdded: failed to link autioconvert and appsink"));
|
||||
WARN(mPipeline.get(), ("OnPadAdded: failed to link audioconvert and appsink"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1023,7 +1023,7 @@ GStreamerImportFileHandle::Import(TrackFactory *trackFactory,
|
||||
// Save track factory pointer
|
||||
mTrackFactory = trackFactory;
|
||||
|
||||
// Create the progrress dialog
|
||||
// Create the progress dialog
|
||||
CreateProgress();
|
||||
|
||||
// Block streams that are to be bypassed
|
||||
|
@@ -144,7 +144,7 @@ std::unique_ptr<ImportFileHandle> PCMImportPlugin::Open(
|
||||
// still has this bug.
|
||||
// This happens in sf_open_fd, which is the very first point of
|
||||
// interaction with libsndfile, so the only workaround is to hardcode
|
||||
// ImportPCM to not handle .mp3. Of couse, this will still fail for mp3s
|
||||
// ImportPCM to not handle .mp3. Of course, this will still fail for mp3s
|
||||
// that are mislabeled with a .wav or other extension.
|
||||
// So, in the future we may want to write a simple parser to detect mp3s here.
|
||||
return NULL;
|
||||
@@ -505,7 +505,7 @@ ProgressResult PCMImportFileHandle::Import(TrackFactory *trackFactory,
|
||||
computeTask->AddWaveTrack(channel);
|
||||
if(moreThanStereo)
|
||||
{
|
||||
//if we have 3 more channels, they get imported on seperate tracks, so we add individual tasks for each.
|
||||
//if we have 3 more channels, they get imported on separate tracks, so we add individual tasks for each.
|
||||
ODManager::Instance()->AddNewTask(std::move(computeTask));
|
||||
computeTask = std::make_unique<ODComputeSummaryTask>();
|
||||
}
|
||||
|
Reference in New Issue
Block a user