![]() |
Audacity 3.2.0
|
Functions for guessing audio type and attempting to read from unknown sample audio data. Implements ImportRawDialog. More...
#include "ImportRaw.h"#include "ImportPlugin.h"#include "ImportUtils.h"#include "AudioIOBase.h"#include "FileFormats.h"#include "Prefs.h"#include "ProjectRate.h"#include "SelectFile.h"#include "ShuttleGui.h"#include "UserException.h"#include "WaveTrack.h"#include "ProgressDialog.h"#include <cmath>#include <stdint.h>#include <vector>#include <wx/crt.h>#include <wx/defs.h>#include <wx/button.h>#include <wx/choice.h>#include <wx/combobox.h>#include <wx/panel.h>#include <wx/stattext.h>#include <wx/textctrl.h>#include "FormatClassifier.h"#include "sndfile.h"Go to the source code of this file.
Classes | |
| class | ImportRawDialog |
| ImportRawDialog prompts you with options such as endianness and sample size to help you importing data of an unknown format. More... | |
Enumerations | |
| enum | { ChoiceID = 9000 , PlayID , DetectID } |
Functions | |
| void | ImportRaw (const AudacityProject &project, wxWindow *parent, const wxString &fileName, WaveTrackFactory *trackFactory, TrackHolders &outTracks) |
| static int | getEndianChoice (int sfFormat) |
Functions for guessing audio type and attempting to read from unknown sample audio data. Implements ImportRawDialog.
Definition in file ImportRaw.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| ChoiceID | |
| PlayID | |
| DetectID | |
Definition at line 280 of file ImportRaw.cpp.
|
static |
Definition at line 260 of file ImportRaw.cpp.
Referenced by ImportRawDialog::ImportRawDialog(), and ImportRawDialog::OnDetect().
| void ImportRaw | ( | const AudacityProject & | project, |
| wxWindow * | parent, | ||
| const wxString & | fileName, | ||
| WaveTrackFactory * | trackFactory, | ||
| TrackHolders & | outTracks | ||
| ) |
Definition at line 106 of file ImportRaw.cpp.
References details::begin(), ImportUtils::ChooseFormat(), WaveTrackFactory::CreateMany(), floatSample, ImportUtils::ForEachChannel(), anonymous_namespace{ExportPCM.cpp}::format, ProjectRate::Get(), ProjectRate::GetRate(), int16Sample, limitSampleBufferSize(), anonymous_namespace{StaffPadTimeAndPitch.cpp}::maxBlockSize, ImportRawDialog::mChannels, ImportRawDialog::mEncoding, ImportRawDialog::mOffset, ImportRawDialog::mPercent, ImportRawDialog::mRate, FileException::Open, project, SampleBuffer::ptr(), FileException::Read, sf_subtype_to_effective_format(), str, BasicUI::Success, ProgressDialog::Update(), and XO().
Referenced by anonymous_namespace{FileMenus.cpp}::DoImport().