diff options
Diffstat (limited to 'hw/gus.c')
-rw-r--r-- | hw/gus.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -250,16 +250,12 @@ static int GUS_load (QEMUFile *f, void *opaque, int version_id) return 0; } -int GUS_init (AudioState *audio, qemu_irq *pic) +int GUS_init (qemu_irq *pic) { + AudioState *audio = AUD_init(); GUSState *s; struct audsettings as; - if (!audio) { - dolog ("No audio state\n"); - return -1; - } - s = qemu_mallocz (sizeof (*s)); AUD_register_card (audio, "gus", &s->card); |