[vlmc-devel] commit: Audio presets: Correcting sample rate values. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Sun Apr 25 18:35:25 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Apr 25 18:34:17 2010 +0200| [b8f03371859e68fb10c0158a05411678ef62fb69] | committer: Hugo Beauzée-Luyssen 

Audio presets: Correcting sample rate values.

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

 src/Gui/wizard/VideoPage.cpp   |    6 +++---
 src/Gui/wizard/VideoPage.h     |    6 +++---
 src/Gui/wizard/ui/VideoPage.ui |    8 ++++----
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/Gui/wizard/VideoPage.cpp b/src/Gui/wizard/VideoPage.cpp
index c20ad07..4e55515 100644
--- a/src/Gui/wizard/VideoPage.cpp
+++ b/src/Gui/wizard/VideoPage.cpp
@@ -78,14 +78,14 @@ void VideoPage::initializePage()
         ui.comboBoxAudioSamplerate->setCurrentIndex( HZ_48000 );
         break;
     case 22000:
-        ui.comboBoxAudioSamplerate->setCurrentIndex( HZ_22000 );
+        ui.comboBoxAudioSamplerate->setCurrentIndex( HZ_22050 );
         break;
     case 11000:
-        ui.comboBoxAudioSamplerate->setCurrentIndex( HZ_11000 );
+        ui.comboBoxAudioSamplerate->setCurrentIndex( HZ_11025 );
         break;
     case 44000:
     default:
-        ui.comboBoxAudioSamplerate->setCurrentIndex( HZ_44000 );
+        ui.comboBoxAudioSamplerate->setCurrentIndex( HZ_44100 );
         break;
     }
 
diff --git a/src/Gui/wizard/VideoPage.h b/src/Gui/wizard/VideoPage.h
index 4464b07..d91ae05 100644
--- a/src/Gui/wizard/VideoPage.h
+++ b/src/Gui/wizard/VideoPage.h
@@ -33,9 +33,9 @@ public:
     enum SampleRate
     {
         HZ_48000,
-        HZ_44000,
-        HZ_22000,
-        HZ_11000
+        HZ_44100,
+        HZ_22050,
+        HZ_11025
     };
 
     enum VideoPresets
diff --git a/src/Gui/wizard/ui/VideoPage.ui b/src/Gui/wizard/ui/VideoPage.ui
index f4430de..6bb55c1 100644
--- a/src/Gui/wizard/ui/VideoPage.ui
+++ b/src/Gui/wizard/ui/VideoPage.ui
@@ -198,7 +198,7 @@
       <item row="2" column="2">
        <widget class="QComboBox" name="comboBoxAudioSamplerate">
         <property name="currentIndex">
-         <number>1</number>
+         <number>0</number>
         </property>
         <item>
          <property name="text">
@@ -207,17 +207,17 @@
         </item>
         <item>
          <property name="text">
-          <string>44000 Hz</string>
+          <string>44100 Hz</string>
          </property>
         </item>
         <item>
          <property name="text">
-          <string>22000 Hz</string>
+          <string>22050 Hz</string>
          </property>
         </item>
         <item>
          <property name="text">
-          <string>11000 Hz</string>
+          <string>11025 Hz</string>
          </property>
         </item>
        </widget>



More information about the Vlmc-devel mailing list