summaryrefslogtreecommitdiffstats
path: root/src/multimedia/audio/qaudiooutput_win32_p.h
diff options
context:
space:
mode:
authorKurt Korbatits <kurt.korbatits@nokia.com>2009-09-09 22:47:18 (GMT)
committerKurt Korbatits <kurt.korbatits@nokia.com>2009-09-09 22:47:18 (GMT)
commita08aa0b58ecbc59b77fe545898987bbff31fddd0 (patch)
tree34ffbbf1ae1aa708b53cba48a5883a1d0988a5d3 /src/multimedia/audio/qaudiooutput_win32_p.h
parent2196db60fa75fc559adb1405c1b43858122ff9e7 (diff)
downloadQt-a08aa0b58ecbc59b77fe545898987bbff31fddd0.zip
Qt-a08aa0b58ecbc59b77fe545898987bbff31fddd0.tar.gz
Qt-a08aa0b58ecbc59b77fe545898987bbff31fddd0.tar.bz2
Crash in audiooutput demo when switching output
-waveOut callback was calling into class during destruction. Changed to wait until close of waveOut/waveIn before returning from destructor. -Reduced default buffer on wince implementation. -Added error checking on buffer allocation. Task-number:261049, 261053 Reviewed-by:Bill King
Diffstat (limited to 'src/multimedia/audio/qaudiooutput_win32_p.h')
-rw-r--r--src/multimedia/audio/qaudiooutput_win32_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/multimedia/audio/qaudiooutput_win32_p.h b/src/multimedia/audio/qaudiooutput_win32_p.h
index 16c71dd..68f418e 100644
--- a/src/multimedia/audio/qaudiooutput_win32_p.h
+++ b/src/multimedia/audio/qaudiooutput_win32_p.h
@@ -132,6 +132,7 @@ private:
MMRESULT result;
WAVEHDR header;
WAVEHDR* waveBlocks;
+ volatile bool finished;
volatile int waveFreeBlockCount;
int waveCurrentBlock;
char* audioBuffer;