From: João Mesquita Date: Tue, 30 Mar 2010 03:52:45 +0000 (+0000) Subject: Initial codec configuration querying modules. Not functional yet. X-Git-Tag: v1.0.6~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e39be696523c6f1873cc8769420a1998b4e86aed;p=thirdparty%2Ffreeswitch.git Initial codec configuration querying modules. Not functional yet. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17137 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/fscomm/mainwindow.cpp b/fscomm/mainwindow.cpp index c9d42022b4..54143da947 100644 --- a/fscomm/mainwindow.cpp +++ b/fscomm/mainwindow.cpp @@ -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() diff --git a/fscomm/preferences/prefdialog.ui b/fscomm/preferences/prefdialog.ui index c60edf1856..4b0bfbec94 100644 --- a/fscomm/preferences/prefdialog.ui +++ b/fscomm/preferences/prefdialog.ui @@ -201,7 +201,7 @@ - 0 + 2 @@ -525,6 +525,16 @@ + + + + Codecs + + + + + + diff --git a/fscomm/preferences/prefsofia.cpp b/fscomm/preferences/prefsofia.cpp index 0cfb1c24d2..3642b3a34e 100644 --- a/fscomm/preferences/prefsofia.cpp +++ b/fscomm/preferences/prefsofia.cpp @@ -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()