Audacity 3.2.0
|
An ImportFileHandle for PCM data. More...
Public Member Functions | |
PCMImportFileHandle (const FilePath &name, SFFile &&file, SF_INFO info) | |
~PCMImportFileHandle () | |
TranslatableString | GetFileDescription () override |
ByteCount | GetFileUncompressedBytes () override |
void | Import (ImportProgressListener &progressListener, WaveTrackFactory *trackFactory, TrackHolders &outTracks, Tags *tags, std::optional< LibFileFormats::AcidizerTags > &outAcidTags) override |
wxInt32 | GetStreamCount () override |
const TranslatableStrings & | GetStreamInfo () override |
void | SetStreamUsage (wxInt32 WXUNUSED(StreamID), bool WXUNUSED(Use)) override |
Public Member Functions inherited from ImportFileHandleEx | |
ImportFileHandleEx (const FilePath &filename) | |
FilePath | GetFilename () const override |
void | Cancel () override |
void | Stop () override |
Public Member Functions inherited from ImportFileHandle | |
virtual | ~ImportFileHandle () |
virtual FilePath | GetFilename () const =0 |
virtual TranslatableString | GetErrorMessage () const |
virtual TranslatableString | GetFileDescription ()=0 |
virtual ByteCount | GetFileUncompressedBytes ()=0 |
virtual wxInt32 | GetStreamCount ()=0 |
virtual const TranslatableStrings & | GetStreamInfo ()=0 |
virtual void | SetStreamUsage (wxInt32 StreamID, bool Use)=0 |
virtual void | Import (ImportProgressListener &progressListener, WaveTrackFactory *trackFactory, TrackHolders &outTracks, Tags *tags, std::optional< LibFileFormats::AcidizerTags > &acidTags)=0 |
virtual void | Cancel ()=0 |
virtual void | Stop ()=0 |
Private Attributes | |
SFFile | mFile |
const SF_INFO | mInfo |
sampleFormat | mEffectiveFormat |
sampleFormat | mFormat |
Additional Inherited Members | |
Public Types inherited from ImportFileHandle | |
using | ByteCount = unsigned long long |
Protected Member Functions inherited from ImportFileHandleEx | |
void | BeginImport () |
bool | IsCancelled () const noexcept |
bool | IsStopped () const noexcept |
An ImportFileHandle for PCM data.
Definition at line 76 of file ImportPCM.cpp.
Definition at line 181 of file ImportPCM.cpp.
References ImportUtils::ChooseFormat(), mEffectiveFormat, mFormat, mInfo, and sf_subtype_to_effective_format().
PCMImportFileHandle::~PCMImportFileHandle | ( | ) |
Definition at line 589 of file ImportPCM.cpp.
|
overridevirtual |
Implements ImportFileHandle.
Definition at line 203 of file ImportPCM.cpp.
References mInfo, sf_header_name(), and XO().
|
overridevirtual |
Implements ImportFileHandle.
Definition at line 269 of file ImportPCM.cpp.
References SAMPLE_SIZE.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements ImportFileHandle.
Definition at line 91 of file ImportPCM.cpp.
|
overridevirtual |
Implements ImportFileHandle.
Definition at line 281 of file ImportPCM.cpp.
References SampleBuffer::Allocate(), ImportFileHandleEx::BeginImport(), ImportProgressListener::Cancelled, ImportUtils::ChooseFormat(), WaveTrackFactory::CreateMany(), ImportProgressListener::Error, ImportUtils::FinalizeImport(), floatSample, ImportUtils::ForEachChannel(), anonymous_namespace{ExportPCM.cpp}::format, LibImportExport::GetAcidizerTags(), ImportFileHandleEx::GetFilename(), Tags::GetGenre(), Tags::GetTag(), Tags::HasTag(), int16Sample, ImportFileHandleEx::IsCancelled(), ImportFileHandleEx::IsStopped(), anonymous_namespace{StaffPadTimeAndPitch.cpp}::maxBlockSize, mEffectiveFormat, mFile, mFormat, min(), mInfo, ImportProgressListener::OnImportProgress(), ImportProgressListener::OnImportResult(), SampleBuffer::ptr(), SAMPLE_SIZE, Tags::SetTag(), ImportProgressListener::Stopped, str, ImportProgressListener::Success, TAG_ALBUM, TAG_ARTIST, TAG_COMMENTS, TAG_COPYRIGHT, TAG_GENRE, TAG_SOFTWARE, TAG_TITLE, TAG_TRACK, TAG_YEAR, UTF8CTOWX, and wxT().
|
inlineoverride |
Definition at line 97 of file ImportPCM.cpp.
|
private |
Definition at line 103 of file ImportPCM.cpp.
Referenced by Import(), and PCMImportFileHandle().
|
private |
Definition at line 101 of file ImportPCM.cpp.
Referenced by Import().
|
private |
Definition at line 104 of file ImportPCM.cpp.
Referenced by Import(), and PCMImportFileHandle().
|
private |
Definition at line 102 of file ImportPCM.cpp.
Referenced by GetFileDescription(), Import(), and PCMImportFileHandle().