![]() |
Audacity 3.2.0
|
Public Member Functions | |
MP3ImportFileHandle (const FilePath &filename) | |
~MP3ImportFileHandle () | |
TranslatableString | GetFileDescription () override |
ByteCount | GetFileUncompressedBytes () override |
ProgressResult | Import (WaveTrackFactory *trackFactory, TrackHolders &outTracks, Tags *tags) override |
bool | SetupOutputFormat () |
void | ReadTags (Tags *tags) |
wxInt32 | GetStreamCount () override |
const TranslatableStrings & | GetStreamInfo () override |
void | SetStreamUsage (wxInt32 StreamID, bool 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 Member Functions | |
bool | Open () |
Static Private Member Functions | |
static ptrdiff_t | ReadCallback (void *handle, void *buffer, size_t size) |
static off_t | SeekCallback (void *handle, off_t offset, int whence) |
Private Attributes | |
wxFile | mFile |
wxFileOffset | mFileLen { 0 } |
WaveTrackFactory * | mTrackFactory { nullptr } |
NewChannelGroup | mChannels |
unsigned | mNumChannels { 0 } |
ProgressResult | mUpdateResult { ProgressResult::Success } |
mpg123_handle * | mHandle { nullptr } |
bool | mFloat64Output {} |
friend | MP3ImportPlugin |
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 |
Definition at line 126 of file ImportMP3_MPG123.cpp.
MP3ImportFileHandle::MP3ImportFileHandle | ( | const FilePath & | filename | ) |
Definition at line 188 of file ImportMP3_MPG123.cpp.
References mHandle, ReadCallback(), and SeekCallback().
MP3ImportFileHandle::~MP3ImportFileHandle | ( | ) |
Definition at line 232 of file ImportMP3_MPG123.cpp.
References mHandle.
|
overridevirtual |
|
overridevirtual |
Implements ImportFileHandle.
Definition at line 243 of file ImportMP3_MPG123.cpp.
|
overridevirtual |
Implements ImportFileHandle.
Definition at line 250 of file ImportMP3_MPG123.cpp.
|
overridevirtual |
Implements ImportFileHandle.
Definition at line 255 of file ImportMP3_MPG123.cpp.
|
overridevirtual |
Implements ImportFileHandle.
Definition at line 265 of file ImportMP3_MPG123.cpp.
References RefreshCode::Cancelled, ImportFileHandle::CreateProgress(), floatSample, mChannels, mFloat64Output, mHandle, mNumChannels, ImportFileHandle::mProgress, mTrackFactory, mUpdateResult, ReadTags(), and SetupOutputFormat().
|
private |
Definition at line 451 of file ImportMP3_MPG123.cpp.
References mFile, mFileLen, ImportFileHandle::mFilename, and mHandle.
|
staticprivate |
Definition at line 499 of file ImportMP3_MPG123.cpp.
Referenced by MP3ImportFileHandle().
void MP3ImportFileHandle::ReadTags | ( | Tags * | tags | ) |
Definition at line 376 of file ImportMP3_MPG123.cpp.
References Tags::GetGenre(), anonymous_namespace{ImportMP3_MPG123.cpp}::GetId3v2Genre(), mHandle, Tags::SetTag(), TAG_ALBUM, TAG_ARTIST, TAG_COMMENTS, TAG_GENRE, TAG_TITLE, TAG_TRACK, TAG_YEAR, and audacity::ToWXString().
Referenced by Import().
|
staticprivate |
Definition at line 523 of file ImportMP3_MPG123.cpp.
References anonymous_namespace{ImportMP3_MPG123.cpp}::GetWXSeekMode(), and mFile.
Referenced by MP3ImportFileHandle().
|
overridevirtual |
Implements ImportFileHandle.
bool MP3ImportFileHandle::SetupOutputFormat | ( | ) |
Definition at line 351 of file ImportMP3_MPG123.cpp.
References floatSample, mChannels, mFloat64Output, mHandle, mNumChannels, mTrackFactory, and ImportFileHandle::NewWaveTrack().
Referenced by Import().
|
private |
Definition at line 155 of file ImportMP3_MPG123.cpp.
Referenced by Import(), and SetupOutputFormat().
|
private |
Definition at line 151 of file ImportMP3_MPG123.cpp.
Referenced by Open(), ReadCallback(), and SeekCallback().
|
private |
Definition at line 152 of file ImportMP3_MPG123.cpp.
Referenced by Open().
|
private |
Definition at line 162 of file ImportMP3_MPG123.cpp.
Referenced by Import(), and SetupOutputFormat().
|
private |
Definition at line 160 of file ImportMP3_MPG123.cpp.
Referenced by Import(), MP3ImportFileHandle(), Open(), ReadTags(), SetupOutputFormat(), and ~MP3ImportFileHandle().
|
private |
Definition at line 156 of file ImportMP3_MPG123.cpp.
Referenced by Import(), and SetupOutputFormat().
|
private |
Definition at line 164 of file ImportMP3_MPG123.cpp.
|
private |
Definition at line 154 of file ImportMP3_MPG123.cpp.
Referenced by Import(), and SetupOutputFormat().
|
private |
Definition at line 158 of file ImportMP3_MPG123.cpp.
Referenced by Import().