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:
Ryan Roden-Corrent
2015-09-01 13:26:32 -04:00
parent deeb95a749
commit e863df7171
2 changed files with 11 additions and 1 deletions

View File

@@ -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();

View File

@@ -124,6 +124,15 @@ ProjectRenderer::ExportFileFormats ProjectRenderer::getFileFormatFromExtension(
QString ProjectRenderer::getFileExtensionFromFormat(
ExportFileFormats _fmt )
{
return fileEncodeDevices[_fmt].m_extension;
}
void ProjectRenderer::startProcessing()
{