aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2012-01-06 09:10:28 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-01-06 09:10:28 -0800
commitd59f812d78fba533c93d3b092965872768d6d295 (patch)
tree53e2bcde71204aa3cc175e348908e35e16c7d3b4
parent4bcc1d92f4d49ee7331bd2eacd28d497e505c5c7 (diff)
parentaef4c4e21a71298668e28659008381a62b8545cd (diff)
downloadexternal_qemu-d59f812d78fba533c93d3b092965872768d6d295.zip
external_qemu-d59f812d78fba533c93d3b092965872768d6d295.tar.gz
external_qemu-d59f812d78fba533c93d3b092965872768d6d295.tar.bz2
Merge "Fix bug in Windows audio code"
-rw-r--r--audio/winaudio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/winaudio.c b/audio/winaudio.c
index 75f6af2..5c2c6b9 100644
--- a/audio/winaudio.c
+++ b/audio/winaudio.c
@@ -381,7 +381,7 @@ winaudio_in_fini (HWVoiceIn *hw)
s->wavein = 0;
}
- for ( i=0; i<NUM_OUT_BUFFERS; ++i ) {
+ for ( i=0; i<NUM_IN_BUFFERS; ++i ) {
if ( s->buffers[i].dwUser != 0xFFFF ) {
waveInUnprepareHeader(
s->wavein, &s->buffers[i], sizeof(s->buffers[i]) );
@@ -411,7 +411,7 @@ winaudio_in_init (HWVoiceIn *hw, struct audsettings *as)
s->wavein = NULL;
InitializeCriticalSection( &s->lock );
- for (i = 0; i < NUM_OUT_BUFFERS; i++) {
+ for (i = 0; i < NUM_IN_BUFFERS; i++) {
s->buffers[i].dwUser = 0xFFFF;
}
s->buffer_bytes = NULL;