mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 17:49:29 +01:00
Merge pull request #41 from Xele02/master
[Qt-desktop] Correct audio crash on exit
This commit is contained in:
commit
a18fbd0bcc
1 file changed
+3
-2
+3
-2
@@ -161,11 +161,11 @@ public:
|
||||
output = new QAudioOutput(fmt);
|
||||
output->setBufferSize(mixlen);
|
||||
feed = output->start();
|
||||
startTimer(1000*AUDIO_SAMPLES / AUDIO_FREQ);
|
||||
timer = startTimer(1000*AUDIO_SAMPLES / AUDIO_FREQ);
|
||||
}
|
||||
~MainAudio() {
|
||||
killTimer(timer);
|
||||
feed->close();
|
||||
delete feed;
|
||||
output->stop();
|
||||
delete output;
|
||||
free(mixbuf);
|
||||
@@ -182,6 +182,7 @@ private:
|
||||
QAudioOutput* output;
|
||||
int mixlen;
|
||||
char* mixbuf;
|
||||
int timer;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user