Make AUD_init failure fatal
authorPaul Brook <paul@codesourcery.com>
Tue, 12 May 2009 11:02:38 +0000 (12:02 +0100)
committerPaul Brook <paul@codesourcery.com>
Tue, 12 May 2009 11:02:38 +0000 (12:02 +0100)
commit2fbb00c8115f709933ddecd16dda3a04a607bf78
treed4b709ce317ced6e21ea29378d00a0b5dd6c6bf6
parent35c605130ec52918d4e7b90d3c963313b7a8e8c6
Make AUD_init failure fatal

Failure to initialize the audio subsystem is not handled consistently.
Where it is handled it has guest visible effects, which is wrong.
We already have a "nosound" audio driver as a last resort, so trying to
proceed without an audio backend seems pointless.

Also protect against multiple calls to AUD_init so that this can be
pushed down into individual devices.

Signed-off-by: Paul Brook <paul@codesourcery.com>
audio/audio.c
hw/mips_jazz.c
hw/mips_malta.c
hw/musicpal.c
hw/pc.c
hw/spitz.c