diff options
author | malc <av1474@comtv.ru> | 2009-05-14 03:11:35 +0400 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2009-05-14 03:20:43 +0400 |
commit | 1a7dafce1dfc3dc2052d0c5d8397e72121291c57 (patch) | |
tree | 6b83da7787156494d16c58e2d5a41396a01a964f /hw/pcspk.c | |
parent | b36aa85c7bef893bdad1f0646a2f6b3018eff0fb (diff) |
Remove any pretense that there can be more than one AudioState
Diffstat (limited to 'hw/pcspk.c')
-rw-r--r-- | hw/pcspk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/pcspk.c b/hw/pcspk.c index 0dad161a83..26a0ecb9df 100644 --- a/hw/pcspk.c +++ b/hw/pcspk.c @@ -98,11 +98,10 @@ static void pcspk_callback(void *opaque, int free) int pcspk_audio_init(qemu_irq *pic) { - AudioState *audio = AUD_init(); PCSpkState *s = &pcspk_state; struct audsettings as = {PCSPK_SAMPLE_RATE, 1, AUD_FMT_U8, 0}; - AUD_register_card(audio, s_spk, &s->card); + AUD_register_card(s_spk, &s->card); s->voice = AUD_open_out(&s->card, s->voice, s_spk, s, pcspk_callback, &as); if (!s->voice) { |