Remove double-underscore prefix from __fileEncodeDevices & make it a static member variable;
this helps to reduce pollution of the global namespace
This commit is contained in:
@@ -64,6 +64,14 @@ public:
|
||||
}
|
||||
} ;
|
||||
|
||||
struct FileEncodeDevice
|
||||
{
|
||||
ExportFileFormats m_fileFormat;
|
||||
const char * m_description;
|
||||
const char * m_extension;
|
||||
AudioFileDeviceInstantiaton m_getDevInst;
|
||||
} ;
|
||||
|
||||
|
||||
ProjectRenderer( const Mixer::qualitySettings & _qs,
|
||||
const OutputSettings & _os,
|
||||
@@ -79,6 +87,8 @@ public:
|
||||
static ExportFileFormats getFileFormatFromExtension(
|
||||
const QString & _ext );
|
||||
|
||||
static const FileEncodeDevice fileEncodeDevices[];
|
||||
|
||||
|
||||
public slots:
|
||||
void startProcessing();
|
||||
@@ -103,16 +113,4 @@ private:
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
struct FileEncodeDevice
|
||||
{
|
||||
ProjectRenderer::ExportFileFormats m_fileFormat;
|
||||
const char * m_description;
|
||||
const char * m_extension;
|
||||
AudioFileDeviceInstantiaton m_getDevInst;
|
||||
} ;
|
||||
|
||||
|
||||
extern FileEncodeDevice __fileEncodeDevices[];
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user