13#include <wx/filename.h>
19 mExtensions(
std::move( supportedExtensions ) )
33 return mExtensions.Index(extension,
false) != wxNOT_FOUND;
55 mProgress = std::make_unique< ProgressDialog >(
65 auto format = std::max(effectiveFormat, defaultFormat);
wxString FileExtension
File extension, not including any leading dot.
The interface that all file import "plugins" (if you want to call them that) must implement....
static wxCharBuffer mFilename
TranslatableString Verbatim(wxString str)
Require calls to the one-argument constructor to go through this distinct global function name.
virtual TranslatableString GetFileDescription()=0
static sampleFormat ChooseFormat(sampleFormat effectiveFormat)
Choose appropriate format, which will not be narrower than the specified one.
std::unique_ptr< ProgressDialog > mProgress
ImportFileHandle(const FilePath &filename)
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.
virtual ~ImportFileHandle()
virtual TranslatableString FailureHint() const
User visible message suggesting what to do when a file type isn't recognized; default empty string.
const FileExtensions mExtensions
virtual FileExtensions GetSupportedExtensions()
ImportPlugin(FileExtensions supportedExtensions)
bool SupportsExtension(const FileExtension &extension)
Holds a msgid for the translation catalog; may also bind format arguments.
Used to create or clone a WaveTrack, with appropriate context from the project that will own the trac...
std::shared_ptr< WaveTrack > Create()
Creates an unnamed empty WaveTrack with default sample format and default rate.
Extend wxArrayString with move operations and construction and insertion fromstd::initializer_list.
PROJECT_RATE_API sampleFormat SampleFormatChoice()