Audacity 3.2.0
|
An ImportFileHandle for FLAC data. More...
Public Member Functions | |
FLACImportFileHandle (const FilePath &name) | |
~FLACImportFileHandle () | |
bool | Init () |
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 | |
sampleFormat | mFormat |
std::unique_ptr< MyFLACFile > | mFile |
wxFFile | mHandle |
unsigned long | mSampleRate |
unsigned long | mNumChannels |
unsigned long | mBitsPerSample |
FLAC__uint64 | mNumSamples |
FLAC__uint64 | mSamplesDone |
bool | mStreamInfoDone |
WaveTrack::Holder | mTrack |
Friends | |
class | MyFLACFile |
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 FLAC data.
Definition at line 115 of file ImportFLAC.cpp.
FLACImportFileHandle::FLACImportFileHandle | ( | const FilePath & | name | ) |
Definition at line 321 of file ImportFLAC.cpp.
References mFile, mFormat, and narrowestSampleFormat.
FLACImportFileHandle::~FLACImportFileHandle | ( | ) |
|
overridevirtual |
|
overridevirtual |
Implements ImportFileHandle.
Definition at line 389 of file ImportFLAC.cpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements ImportFileHandle.
Definition at line 133 of file ImportFLAC.cpp.
|
overridevirtual |
Implements ImportFileHandle.
Definition at line 395 of file ImportFLAC.cpp.
References ImportFileHandleEx::BeginImport(), ImportProgressListener::Cancelled, Tags::Clear(), ImportUtils::FinalizeImport(), Tags::HasTag(), ImportFileHandleEx::IsCancelled(), ImportFileHandleEx::IsStopped(), mFile, mFormat, mNumChannels, mSampleRate, mStreamInfoDone, mTrack, name, ImportUtils::NewWaveTrack(), ImportProgressListener::OnImportResult(), Tags::SetTag(), ImportProgressListener::Stopped, ImportProgressListener::Success, TAG_COMMENTS, TAG_YEAR, and wxT().
bool FLACImportFileHandle::Init | ( | ) |
Definition at line 331 of file ImportFLAC.cpp.
References ImportFileHandleEx::GetFilename(), mFile, ImportFileHandleEx::mFilename, mHandle, OSINPUT, and wxT().
|
inlineoverride |
Definition at line 139 of file ImportFLAC.cpp.
|
friend |
Definition at line 117 of file ImportFLAC.cpp.
|
private |
Definition at line 148 of file ImportFLAC.cpp.
Referenced by MyFLACFile::metadata_callback().
|
private |
Definition at line 144 of file ImportFLAC.cpp.
Referenced by FLACImportFileHandle(), Import(), Init(), and ~FLACImportFileHandle().
|
private |
Definition at line 143 of file ImportFLAC.cpp.
Referenced by FLACImportFileHandle(), Import(), and MyFLACFile::metadata_callback().
|
private |
Definition at line 145 of file ImportFLAC.cpp.
Referenced by Init().
|
private |
Definition at line 147 of file ImportFLAC.cpp.
Referenced by Import(), and MyFLACFile::metadata_callback().
|
private |
Definition at line 149 of file ImportFLAC.cpp.
Referenced by MyFLACFile::metadata_callback(), and MyFLACFile::write_callback().
|
private |
Definition at line 146 of file ImportFLAC.cpp.
Referenced by Import(), and MyFLACFile::metadata_callback().
|
private |
Definition at line 150 of file ImportFLAC.cpp.
Referenced by MyFLACFile::write_callback().
|
private |
Definition at line 151 of file ImportFLAC.cpp.
Referenced by Import(), and MyFLACFile::metadata_callback().
|
private |
Definition at line 152 of file ImportFLAC.cpp.
Referenced by Import(), and MyFLACFile::write_callback().