[vlmc-devel] commit: Preferences: Sample rate is NOT an int between 0 and 100. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Sun Oct 31 15:35:41 CET 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Oct 31 15:35:10 2010 +0100| [5533cf37206607b09b18f9a2798480d9c0d1f876] | committer: Hugo Beauzée-Luyssen 

Preferences: Sample rate is NOT an int between 0 and 100.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=5533cf37206607b09b18f9a2798480d9c0d1f876
---

 src/Project/ProjectManager.cpp |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/Project/ProjectManager.cpp b/src/Project/ProjectManager.cpp
index 26f2e67..23ed4c4 100644
--- a/src/Project/ProjectManager.cpp
+++ b/src/Project/ProjectManager.cpp
@@ -61,10 +61,11 @@ ProjectManager::ProjectManager() : m_projectFile( NULL ), m_needSave( false )
                              QT_TRANSLATE_NOOP( "PreferenceWidget", "Height resolution of the output video" ),
                              SettingValue::Flag( SettingValue::Clamped | SettingValue::EightMultiple ) );
     height->setLimits( 0, 2048 );
-    VLMC_CREATE_PROJECT_INT( "audio/AudioSampleRate", 0,
+    SettingValue    *sampleRate = VLMC_CREATE_PROJECT_VAR( SettingValue::Double, "audio/AudioSampleRate", 44100,
                              QT_TRANSLATE_NOOP( "PreferenceWidget", "Audio samplerate" ),
-                             QT_TRANSLATE_NOOP( "PreferenceWidget", "Output project audio samplerate" ) );
-
+                             QT_TRANSLATE_NOOP( "PreferenceWidget", "Output project audio samplerate" ),
+                             SettingValue::Flag( SettingValue::Clamped ) );
+    sampleRate->setLimits( 11025, 48000 );
     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