mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 02:29:51 +01:00
Enable threaded audio on Symbian.
This commit is contained in:
1 parent
c53bf92350
commit
37cd71b2a4
2 files changed
+17
-15
No files matched your search
+2
-6
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user