Can set the audio device.

git-svn-id: http://voip.null.ro/svn/yate@333 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2005-05-05 19:59:03 +00:00
parent 5d027533e9
commit f1e3fae071
1 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ void QtClientThread::run (void)
int argc = 1;
char *argv[] = {"QYate", NULL};
m_app = new QApplication(argc, argv);
m_frm = new QtClientForm();
m_frm = new QtClientForm(s_device.safe());
m_app->setMainWidget (m_frm);
m_frm->show();
m_msgHandler = new QtClientHandler(1, m_frm);
@ -141,9 +141,9 @@ QtYateClientPlugin::~QtYateClientPlugin ()
void QtYateClientPlugin::initialize (void)
{
s_device = Engine::config().getValue("client","device","oss//dev/dsp");
if (!thread && ::getenv("DISPLAY")) {
Output ("Initializing Qt Client");
s_device = Engine::config().getValue("client","device","oss//dev/dsp");
thread = new QtClientThread;
thread->startup();
}