summaryrefslogtreecommitdiffstats
path: root/hw/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/pc.c')
-rw-r--r--hw/pc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/hw/pc.c b/hw/pc.c
index d0fcb0f..261eda9 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -401,9 +401,11 @@ void pc_init(int ram_size, int vga_ram_size, int boot_device,
DMA_init();
#ifndef _WIN32
- /* no audio supported yet for win32 */
- AUD_init();
- SB16_init();
+ if (audio_enabled) {
+ /* no audio supported yet for win32 */
+ AUD_init();
+ SB16_init();
+ }
#endif
floppy_controller = fdctrl_init(6, 2, 0, 0x3f0, fd_table);
OpenPOWER on IntegriCloud