diff options
author | Juan Quintela | 2017-04-26 00:37:31 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2017-05-04 09:16:05 +0200 |
commit | 4bf7792aaedc1f66f94e21c1bae91bb4d208a08d (patch) | |
tree | 3eeac156a98bd617de9324562c8d879100da1fb3 /hw/audio/gusemu_mixer.c | |
parent | audio: GUSword is uint16_t (diff) | |
download | qemu-4bf7792aaedc1f66f94e21c1bae91bb4d208a08d.tar.gz qemu-4bf7792aaedc1f66f94e21c1bae91bb4d208a08d.tar.xz qemu-4bf7792aaedc1f66f94e21c1bae91bb4d208a08d.zip |
audio: GUSword is uint16_t
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-id: 20170425223739.6703-19-quintela@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/audio/gusemu_mixer.c')
-rw-r--r-- | hw/audio/gusemu_mixer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/audio/gusemu_mixer.c b/hw/audio/gusemu_mixer.c index b189db990c..981a9ae0d4 100644 --- a/hw/audio/gusemu_mixer.c +++ b/hw/audio/gusemu_mixer.c @@ -27,10 +27,10 @@ #include "gustate.h" #define GUSregb(position) (* (gusptr+(position))) -#define GUSregw(position) (*(GUSword *) (gusptr+(position))) +#define GUSregw(position) (*(uint16_t *) (gusptr+(position))) #define GUSregd(position) (*(GUSdword *)(gusptr+(position))) -#define GUSvoice(position) (*(GUSword *)(voiceptr+(position))) +#define GUSvoice(position) (*(uint16_t *)(voiceptr+(position))) /* samples are always 16bit stereo (4 bytes each, first right then left interleaved) */ void gus_mixvoices(GUSEmuState * state, unsigned int playback_freq, unsigned int numsamples, @@ -39,14 +39,14 @@ void gus_mixvoices(GUSEmuState * state, unsigned int playback_freq, unsigned int /* note that byte registers are stored in the upper half of each voice register! */ uint8_t *gusptr; int Voice; - GUSword *voiceptr; + uint16_t *voiceptr; unsigned int count; for (count = 0; count < numsamples * 2; count++) *(bufferpos + count) = 0; /* clear */ gusptr = state->gusdatapos; - voiceptr = (GUSword *) gusptr; + voiceptr = (uint16_t *) gusptr; if (!(GUSregb(GUS4cReset) & 0x01)) /* reset flag active? */ return; |