aboutsummaryrefslogtreecommitdiff
path: root/audio/audio.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-12-06 23:14:48 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-12-06 23:14:48 +0000
commitfe2cece60e02262e64cfadcbcd0408720628ef2a (patch)
tree65d927cabf8e605b8ec9528f9cae9bb28fe44aa1 /audio/audio.c
parent978a66ff73add1f462903af92ccf9a34f6a513c2 (diff)
audio fixes (malc)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1165 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'audio/audio.c')
-rw-r--r--audio/audio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/audio/audio.c b/audio/audio.c
index 661771e82e..0c0c8dd86f 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -367,14 +367,15 @@ static int dist (void *hw)
{
if (hw) {
return (((uint8_t *) hw - (uint8_t *) hw_voices)
- / audio_state.voice_size) + 1;
+ / audio_state.drv->voice_size) + 1;
}
else {
return 0;
}
}
-#define ADVANCE(hw) hw ? advance (hw, audio_state.voice_size) : hw_voices
+#define ADVANCE(hw) \
+ ((hw) ? advance (hw, audio_state.drv->voice_size) : hw_voices)
HWVoice *pcm_hw_find_any (HWVoice *hw)
{