mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-24 06:37:52 -04:00
Add ProjectRenderer::getFileExtensionFromFormat.
Currently ProjectRenderer has a helper getFileFormatFromExtension, this adds a similar helper getFileExtensionFromFormat. This will, for example, return "ogg" for OggFile.
This commit is contained in:
@@ -87,8 +87,9 @@ public:
|
||||
static ExportFileFormats getFileFormatFromExtension(
|
||||
const QString & _ext );
|
||||
|
||||
static const FileEncodeDevice fileEncodeDevices[];
|
||||
static QString getFileExtensionFromFormat( ExportFileFormats _fmt );
|
||||
|
||||
static const FileEncodeDevice fileEncodeDevices[];
|
||||
|
||||
public slots:
|
||||
void startProcessing();
|
||||
|
||||
@@ -124,6 +124,15 @@ ProjectRenderer::ExportFileFormats ProjectRenderer::getFileFormatFromExtension(
|
||||
|
||||
|
||||
|
||||
QString ProjectRenderer::getFileExtensionFromFormat(
|
||||
ExportFileFormats _fmt )
|
||||
{
|
||||
return fileEncodeDevices[_fmt].m_extension;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void ProjectRenderer::startProcessing()
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user