aboutsummaryrefslogtreecommitdiff
path: root/hw/pcspk.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-07-04 21:47:22 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-07-04 21:47:22 +0000
commitd929eba5d47f097302779d55427712c3ceb931ad (patch)
tree14ca7172d2abe2d446f96b885464b17044705d3e /hw/pcspk.c
parent219fb125039e175a92aa14684ac688305b5143bd (diff)
audio endianness API changes (malc)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2042 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pcspk.c')
-rw-r--r--hw/pcspk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/pcspk.c b/hw/pcspk.c
index 2e30662a25..0d52b31b45 100644
--- a/hw/pcspk.c
+++ b/hw/pcspk.c
@@ -95,7 +95,7 @@ static void pcspk_callback(void *opaque, int free)
int pcspk_audio_init(AudioState *audio)
{
PCSpkState *s = &pcspk_state;
- audsettings_t as = {PCSPK_SAMPLE_RATE, 1, AUD_FMT_U8};
+ audsettings_t as = {PCSPK_SAMPLE_RATE, 1, AUD_FMT_U8, 0};
if (!audio) {
AUD_log(s_spk, "No audio state\n");
@@ -103,7 +103,7 @@ int pcspk_audio_init(AudioState *audio)
}
AUD_register_card(audio, s_spk, &s->card);
- s->voice = AUD_open_out(&s->card, s->voice, s_spk, s, pcspk_callback, &as, 0);
+ s->voice = AUD_open_out(&s->card, s->voice, s_spk, s, pcspk_callback, &as);
if (!s->voice) {
AUD_log(s_spk, "Could not open voice\n");
return -1;