From e39be696523c6f1873cc8769420a1998b4e86aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Mesquita?= Date: Tue, 30 Mar 2010 03:52:45 +0000 Subject: [PATCH] Initial codec configuration querying modules. Not functional yet. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17137 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- fscomm/mainwindow.cpp | 1 + fscomm/preferences/prefdialog.ui | 12 +++++++++++- fscomm/preferences/prefsofia.cpp | 9 +++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) 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()