aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2012-01-05 13:35:08 -0800
committerVladimir Chtchetkine <vchtchetkine@google.com>2012-01-05 13:35:08 -0800
commitaef4c4e21a71298668e28659008381a62b8545cd (patch)
treecb0f03830f4005866566d2e47d8b6d6d6ecafbba /audio
parent49dd3f3b705e9a78984699d52ddf9ed9561c9dc2 (diff)
downloadexternal_qemu-aef4c4e21a71298668e28659008381a62b8545cd.zip
external_qemu-aef4c4e21a71298668e28659008381a62b8545cd.tar.gz
external_qemu-aef4c4e21a71298668e28659008381a62b8545cd.tar.bz2
Fix bug in Windows audio code
Change-Id: Ia011e2642f7411991052281af4c26ffcbb335c36
Diffstat (limited to 'audio')
-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;