diff options
Diffstat (limited to 'hw/adlib.c')
-rw-r--r-- | hw/adlib.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -277,16 +277,12 @@ static void Adlib_fini (AdlibState *s) AUD_remove_card (&s->card); } -int Adlib_init (AudioState *audio, qemu_irq *pic) +int Adlib_init (qemu_irq *pic) { + AudioState *audio = AUD_init(); AdlibState *s = &glob_adlib; struct audsettings as; - if (!audio) { - dolog ("No audio state\n"); - return -1; - } - #ifdef HAS_YMF262 if (YMF262Init (1, 14318180, conf.freq)) { dolog ("YMF262Init %d failed\n", conf.freq); |