Audacity 3.2.0
|
Public Member Functions | |
OpusImportFileHandle (const FilePath &filename) | |
~OpusImportFileHandle () | |
bool | IsOpen () const |
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 StreamID, bool 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 Member Functions | |
void | LogOpusError (const char *method, int error) |
void | NotifyImportFailed (ImportProgressListener &progressListener, int error) |
void | NotifyImportFailed (ImportProgressListener &progressListener, const TranslatableString &error) |
Static Private Member Functions | |
static int | OpusReadCallback (void *stream, unsigned char *ptr, int nbytes) |
static int | OpusSeekCallback (void *stream, opus_int64 offset, int whence) |
static opus_int64 | OpusTellCallback (void *stream) |
static int | OpusCloseCallback (void *stream) |
static TranslatableString | GetOpusErrorString (int error) |
Private Attributes | |
wxFile | mFile |
OpusFileCallbacks | mCallbacks |
OggOpusFile * | mOpusFile {} |
int | mNumChannels {} |
int64_t | mNumSamples {} |
const double | mSampleRate { 48000.0 } |
const sampleFormat | mFormat { floatSample } |
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 |
Definition at line 49 of file ImportOpus.cpp.
|
explicit |
Definition at line 137 of file ImportOpus.cpp.
References LogOpusError(), mFile, mNumChannels, mNumSamples, mOpusFile, OpusCloseCallback(), OpusReadCallback(), OpusSeekCallback(), and OpusTellCallback().
OpusImportFileHandle::~OpusImportFileHandle | ( | ) |
Definition at line 417 of file ImportOpus.cpp.
References mOpusFile.
|
overridevirtual |
|
overridevirtual |
|
staticprivate |
Definition at line 347 of file ImportOpus.cpp.
References XO().
Referenced by LogOpusError(), and NotifyImportFailed().
|
overridevirtual |
|
overridevirtual |
Implements ImportFileHandle.
Definition at line 292 of file ImportOpus.cpp.
|
overridevirtual |
Implements ImportFileHandle.
Definition at line 174 of file ImportOpus.cpp.
References ImportFileHandleEx::BeginImport(), ImportProgressListener::Cancelled, ImportProgressListener::Error, ImportUtils::FinalizeImport(), ImportUtils::ForEachChannel(), Tags::HasTag(), ImportFileHandleEx::IsCancelled(), ImportFileHandleEx::IsStopped(), mFormat, mNumChannels, mNumSamples, mOpusFile, mSampleRate, name, ImportUtils::NewWaveTrack(), NotifyImportFailed(), Tuple::detail::npos(), ImportProgressListener::OnImportProgress(), ImportProgressListener::OnImportResult(), Tags::SetTag(), ImportProgressListener::Stopped, ImportProgressListener::Success, TAG_YEAR, audacity::ToWXString(), wxT(), and XO().
bool OpusImportFileHandle::IsOpen | ( | ) | const |
Definition at line 412 of file ImportOpus.cpp.
References mOpusFile.
|
private |
Definition at line 378 of file ImportOpus.cpp.
References GetOpusErrorString().
Referenced by OpusImportFileHandle().
|
private |
Definition at line 395 of file ImportOpus.cpp.
References ImportProgressListener::Cancelled, ImportProgressListener::Error, ImportFileHandleEx::IsCancelled(), ImportFileHandleEx::IsStopped(), ImportProgressListener::OnImportResult(), ImportUtils::ShowMessageBox(), ImportProgressListener::Stopped, and XO().
|
private |
Definition at line 389 of file ImportOpus.cpp.
References GetOpusErrorString(), and NotifyImportFailed().
Referenced by Import(), and NotifyImportFailed().
|
staticprivate |
Definition at line 337 of file ImportOpus.cpp.
References mFile.
Referenced by OpusImportFileHandle().
|
staticprivate |
Definition at line 302 of file ImportOpus.cpp.
Referenced by OpusImportFileHandle().
|
staticprivate |
Definition at line 315 of file ImportOpus.cpp.
References mFile.
Referenced by OpusImportFileHandle().
|
staticprivate |
Definition at line 330 of file ImportOpus.cpp.
Referenced by OpusImportFileHandle().
|
overridevirtual |
|
private |
Definition at line 81 of file ImportOpus.cpp.
|
private |
Definition at line 79 of file ImportOpus.cpp.
Referenced by OpusCloseCallback(), OpusImportFileHandle(), and OpusSeekCallback().
|
private |
Definition at line 93 of file ImportOpus.cpp.
Referenced by Import().
|
private |
Definition at line 83 of file ImportOpus.cpp.
Referenced by Import(), and OpusImportFileHandle().
|
private |
Definition at line 84 of file ImportOpus.cpp.
Referenced by Import(), and OpusImportFileHandle().
|
private |
Definition at line 82 of file ImportOpus.cpp.
Referenced by Import(), IsOpen(), OpusImportFileHandle(), and ~OpusImportFileHandle().
|
private |
Definition at line 89 of file ImportOpus.cpp.
Referenced by Import().