From 8da1a472ae5647740d68b72b61eab42a107da50f Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Wed, 13 Jun 2007 16:34:13 +0000 Subject: [PATCH] Add native audio support (without SDL) from Nigel's Basilisk II port to MacOS X. --- SheepShaver/Makefile | 3 +++ SheepShaver/src/Unix/configure.ac | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/SheepShaver/Makefile b/SheepShaver/Makefile index bb2e22a1..96258610 100644 --- a/SheepShaver/Makefile +++ b/SheepShaver/Makefile @@ -74,6 +74,9 @@ links: MacOSX/sys_darwin.cpp MacOSX/clip_macosx.cpp \ MacOSX/macos_util_macosx.h MacOSX/extfs_macosx.h \ MacOSX/extfs_macosx.mm Windows/clip_windows.cpp \ + MacOSX/MacOSX_sound_if.cpp MacOSX/MacOSX_sound_if.h \ + MacOSX/AudioBackEnd.cpp MacOSX/AudioBackEnd.h \ + MacOSX/AudioDevice.cpp MacOSX/AudioDevice.h MacOSX/audio_macosx.cpp \ Windows/cd_defs.h Windows/cdenable Windows/extfs_windows.cpp \ Windows/posix_emu.cpp Windows/posix_emu.h Windows/sys_windows.cpp \ Windows/timer_windows.cpp Windows/util_windows.cpp \ diff --git a/SheepShaver/src/Unix/configure.ac b/SheepShaver/src/Unix/configure.ac index 7353c745..6042ffc2 100644 --- a/SheepShaver/src/Unix/configure.ac +++ b/SheepShaver/src/Unix/configure.ac @@ -521,6 +521,9 @@ dnl Check for some MacOS X frameworks AC_CHECK_FRAMEWORK(Carbon, [#include ]) AC_CHECK_FRAMEWORK(IOKit, [#include ]) AC_CHECK_FRAMEWORK(CoreFoundation, [#include ]) +AC_CHECK_FRAMEWORK(CoreAudio, [#include ]) +AC_CHECK_FRAMEWORK(AudioUnit, [#include ]) +AC_CHECK_FRAMEWORK(AudioToolbox, [#include ]) dnl Select system-dependant sources. SERIALSRC=serial_unix.cpp @@ -558,6 +561,9 @@ darwin*) if [[ "x$ac_cv_framework_Carbon" = "xyes" ]]; then EXTFSSRC=../MacOSX/extfs_macosx.mm fi + if [[ "x$ac_cv_framework_CoreAudio" = "xyes" ]]; then + AUDIOSRC="../MacOSX/audio_macosx.cpp ../MacOSX/AudioBackEnd.cpp ../MacOSX/AudioDevice.cpp ../MacOSX/MacOSX_sound_if.cpp" + fi ;; irix*) AUDIOSRC=Irix/audio_irix.cpp