![]() |
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 |
ProgressResult | Import (WaveTrackFactory *trackFactory, TrackHolders &outTracks, Tags *tags) override |
wxInt32 | GetStreamCount () override |
const TranslatableStrings & | GetStreamInfo () override |
void | SetStreamUsage (wxInt32 WXUNUSED(StreamID), bool WXUNUSED(Use)) override |
![]() | |
ImportFileHandle (const FilePath &filename) | |
virtual | ~ImportFileHandle () |
void | CreateProgress () |
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 ProgressResult | Import (WaveTrackFactory *trackFactory, TrackHolders &outTracks, Tags *tags)=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 |
ProgressResult | mUpdateResult |
NewChannelGroup | mChannels |
Friends | |
class | MyFLACFile |
Additional Inherited Members | |
![]() | |
using | ProgressResult = BasicUI::ProgressResult |
using | ByteCount = unsigned long long |
![]() | |
static sampleFormat | ChooseFormat (sampleFormat effectiveFormat) |
Choose appropriate format, which will not be narrower than the specified one. More... | |
![]() | |
std::shared_ptr< WaveTrack > | NewWaveTrack (WaveTrackFactory &trackFactory, sampleFormat effectiveFormat, double rate) |
Build a wave track with appropriate format, which will not be narrower than the specified one. More... | |
![]() | |
FilePath | mFilename |
std::unique_ptr< ProgressDialog > | mProgress |
An ImportFileHandle for FLAC data.
Definition at line 133 of file ImportFLAC.cpp.
FLACImportFileHandle::FLACImportFileHandle | ( | const FilePath & | name | ) |
Definition at line 333 of file ImportFLAC.cpp.
References mFile, mFormat, and narrowestSampleFormat.
FLACImportFileHandle::~FLACImportFileHandle | ( | ) |
|
overridevirtual |
|
overridevirtual |
Implements ImportFileHandle.
Definition at line 402 of file ImportFLAC.cpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements ImportFileHandle.
Definition at line 149 of file ImportFLAC.cpp.
|
overridevirtual |
Implements ImportFileHandle.
Definition at line 409 of file ImportFLAC.cpp.
References RefreshCode::Cancelled, Tags::Clear(), ImportFileHandle::CreateProgress(), Tags::HasTag(), mChannels, mFile, mFormat, mNumChannels, mSampleRate, mStreamInfoDone, mUpdateResult, name, ImportFileHandle::NewWaveTrack(), Tags::SetTag(), TAG_COMMENTS, TAG_YEAR, and wxT().
bool FLACImportFileHandle::Init | ( | ) |
Definition at line 344 of file ImportFLAC.cpp.
References mFile, ImportFileHandle::mFilename, mHandle, OSINPUT, and wxT().
|
inlineoverride |
Definition at line 155 of file ImportFLAC.cpp.
|
friend |
Definition at line 135 of file ImportFLAC.cpp.
|
private |
Definition at line 164 of file ImportFLAC.cpp.
Referenced by MyFLACFile::metadata_callback().
|
private |
Definition at line 169 of file ImportFLAC.cpp.
Referenced by Import(), and MyFLACFile::write_callback().
|
private |
Definition at line 160 of file ImportFLAC.cpp.
Referenced by FLACImportFileHandle(), Import(), Init(), and ~FLACImportFileHandle().
|
private |
Definition at line 159 of file ImportFLAC.cpp.
Referenced by FLACImportFileHandle(), Import(), and MyFLACFile::metadata_callback().
|
private |
Definition at line 161 of file ImportFLAC.cpp.
Referenced by Init().
|
private |
Definition at line 163 of file ImportFLAC.cpp.
Referenced by Import(), MyFLACFile::metadata_callback(), and MyFLACFile::write_callback().
|
private |
Definition at line 165 of file ImportFLAC.cpp.
Referenced by MyFLACFile::metadata_callback().
|
private |
Definition at line 162 of file ImportFLAC.cpp.
Referenced by Import(), and MyFLACFile::metadata_callback().
|
private |
Definition at line 166 of file ImportFLAC.cpp.
|
private |
Definition at line 167 of file ImportFLAC.cpp.
Referenced by Import(), and MyFLACFile::metadata_callback().
|
private |
Definition at line 168 of file ImportFLAC.cpp.
Referenced by Import().