Commit 3a4398a6 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

ProjectManager: Adding a preference to set the number of audio channels.

This is unused for now, but is required for the next commit.
parent e17a5898
......@@ -66,6 +66,11 @@ ProjectManager::ProjectManager() : m_projectFile( NULL ), m_needSave( false )
QT_TRANSLATE_NOOP( "PreferenceWidget", "Output project audio samplerate" ),
SettingValue::Flag( SettingValue::Clamped ) );
sampleRate->setLimits( 11025, 48000 );
SettingValue *audioChannel = VLMC_CREATE_PROJECT_VAR( SettingValue::Int, "audio/NbChannels", 2,
QT_TRANSLATE_NOOP("PreferenceWidget", "Audio channels" ),
QT_TRANSLATE_NOOP("PreferenceWidget", "Number of audio channels" ),
SettingValue::Flag( SettingValue::Clamped ) );
audioChannel->setLimits( 2, 2 );
VLMC_CREATE_PROJECT_STRING( "general/ProjectName", unNamedProject,
QT_TRANSLATE_NOOP( "PreferenceWidget", "Project name" ),
QT_TRANSLATE_NOOP( "PreferenceWidget", "The project name" ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment