Enable threaded audio on Symbian.

This commit is contained in:
Sacha committed 2013-10-26 19:51:29 +10:00
1 parent c53bf92350
commit 37cd71b2a4
2 files changed
+17 -15

No files matched your search

+2 -6
View File
@@ -156,23 +156,19 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
vibra = CHWRMVibra::NewL();
#endif
#ifdef __SYMBIAN32__
MainAudio *audio = new MainAudio();
#else
QThread* thread = new QThread;
MainAudio *audio = new MainAudio();
audio->moveToThread(thread);
QObject::connect(thread, SIGNAL(started()), audio, SLOT(run()));
QObject::connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater()));
thread->start();
#endif
int ret = a.exec();
delete audio;
#ifdef __SYMBIAN32__
delete vibra;
#else
thread->quit();
#endif
thread->quit();
NativeShutdown();
net::Shutdown();
return ret;