]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Initial codec configuration querying modules. Not functional yet.
authorJoão Mesquita <jmesquita@freeswitch.org>
Tue, 30 Mar 2010 03:52:45 +0000 (03:52 +0000)
committerJoão Mesquita <jmesquita@freeswitch.org>
Tue, 30 Mar 2010 03:52:45 +0000 (03:52 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17137 d0543943-73ff-0310-b7d9-9358b9ac24b2

fscomm/mainwindow.cpp
fscomm/preferences/prefdialog.ui
fscomm/preferences/prefsofia.cpp

index c9d42022b4fc5024f37493b942834defa082f2b3..54143da947d2a6386f7d5959f00c5a80e4fda06c 100644 (file)
@@ -297,6 +297,7 @@ void MainWindow::fshostReady()
                              tr("Portaudio could not be loaded. Please check if mod_portaudio is properly compiled."),
                              QMessageBox::Ok);
     }
+
 }
 
 void MainWindow::paAnswer()
index c60edf1856ac6a3247aeb46326315c8a02dc65f3..4b0bfbec94fada309919e48b8895521b27bec972 100644 (file)
        <item>
         <widget class="QTabWidget" name="tabWidget">
          <property name="currentIndex">
-          <number>0</number>
+          <number>2</number>
          </property>
          <widget class="QWidget" name="tab">
           <attribute name="title">
              </item>
             </widget>
            </item>
+           <item row="2" column="0">
+            <widget class="QLabel" name="label_42">
+             <property name="text">
+              <string>Codecs</string>
+             </property>
+            </widget>
+           </item>
+           <item row="2" column="1">
+            <widget class="QListWidget" name="listAvailableCodecs"/>
+           </item>
           </layout>
          </widget>
          <widget class="QWidget" name="tab_3">
index 0cfb1c24d2749d3b7a39684e09e49f9f168a61c3..3642b3a34e37d0caff7f2e52dcd77f2b29050221 100644 (file)
@@ -68,6 +68,15 @@ void PrefSofia::readConfig()
     settings.endGroup();
     settings.endGroup();
 
+    /* This is here to show the proper codec config! */
+    const switch_codec_implementation_t *codecs[SWITCH_MAX_CODECS];
+    uint32_t num_codecs = switch_loadable_module_get_codecs(codecs, sizeof(codecs) / sizeof(codecs[0]));
+    uint32_t x;
+
+    for (x = 0; x < num_codecs; x++) {
+        _ui->listAvailableCodecs->addItem(codecs[x]->iananame);
+    }
+
 }
 
 void PrefSofia::writeConfig()