[vlmc-devel] commit: ProjectManager: Adding a preference to set the number of audio channels. ( =?UTF-8?Q?Hugo=20Beauz=C3=A9e=2DLuyssen?==?UTF-8?Q?=20?=)
git at videolan.org
git at videolan.org
Sat Nov 27 15:34:06 CET 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sat Nov 27 15:13:19 2010 +0100| [3a4398a66fc0aa3cabe826224e47b0c6be6746c8] | committer: 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.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=3a4398a66fc0aa3cabe826224e47b0c6be6746c8
---
src/Project/ProjectManager.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/Project/ProjectManager.cpp b/src/Project/ProjectManager.cpp
index 23ed4c4..9d58198 100644
--- a/src/Project/ProjectManager.cpp
+++ b/src/Project/ProjectManager.cpp
@@ -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" ) );
More information about the Vlmc-devel
mailing list