From 815d49e86a845fbb58b9acf2cf8e24219b63c4e0 Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 5 Mar 2001 22:54:20 +0000 Subject: [PATCH] Reshuffled some of the sound code and created a "src/Sound" subdirectory. --- FlightGear.dsp | 15 ++++ src/Main/Makefile.am | 3 +- src/Main/globals.hxx | 2 +- src/Main/main.cxx | 17 +++-- src/Main/soundmgr.hxx | 117 ------------------------------- src/Makefile.am | 1 + src/Sound/Makefile.am | 7 ++ src/{Main => Sound}/morse.cxx | 30 ++++++++ src/{Main => Sound}/morse.hxx | 30 +------- src/{Main => Sound}/soundmgr.cxx | 3 +- 10 files changed, 66 insertions(+), 159 deletions(-) delete mode 100644 src/Main/soundmgr.hxx create mode 100644 src/Sound/Makefile.am rename src/{Main => Sound}/morse.cxx (83%) rename src/{Main => Sound}/morse.hxx (81%) rename src/{Main => Sound}/soundmgr.cxx (99%) diff --git a/FlightGear.dsp b/FlightGear.dsp index 4911b9214..e42fcdf36 100644 --- a/FlightGear.dsp +++ b/FlightGear.dsp @@ -2373,6 +2373,21 @@ SOURCE=.\src\Main\options.cxx # End Source File # Begin Source File +SOURCE=.\src\Main\soundmgr.cxx + +!IF "$(CFG)" == "FlightGear - Win32 Release" + +# PROP Intermediate_Dir "Release\main" + +!ELSEIF "$(CFG)" == "FlightGear - Win32 Debug" + +# PROP Intermediate_Dir "Debug\main" + +!ENDIF + +# End Source File +# Begin Source File + SOURCE=.\src\Main\splash.cxx !IF "$(CFG)" == "FlightGear - Win32 Release" diff --git a/src/Main/Makefile.am b/src/Main/Makefile.am index b359d223c..1f8250ec6 100644 --- a/src/Main/Makefile.am +++ b/src/Main/Makefile.am @@ -42,9 +42,7 @@ fgfs_SOURCES = \ fgfs.cxx fgfs.hxx \ globals.cxx globals.hxx \ keyboard.cxx keyboard.hxx \ - morse.cxx morse.hxx \ options.cxx options.hxx \ - soundmgr.cxx soundmgr.hxx \ splash.cxx splash.hxx \ viewer.cxx viewer.hxx \ viewer_lookat.cxx viewer_lookat.hxx \ @@ -65,6 +63,7 @@ fgfs_LDADD = \ $(top_builddir)/src/GUI/libGUI.a \ $(top_builddir)/src/Navaids/libNavaids.a \ $(top_builddir)/src/Scenery/libScenery.a \ + $(top_builddir)/src/Sound/libSound.a \ $(top_builddir)/src/Airports/libAirports.a \ $(NETWORK_LIBS) \ $(top_builddir)/src/Objects/libObjects.a \ diff --git a/src/Main/globals.hxx b/src/Main/globals.hxx index 79afec3b2..06155b7bc 100644 --- a/src/Main/globals.hxx +++ b/src/Main/globals.hxx @@ -36,7 +36,7 @@ #include #include -#include "soundmgr.hxx" +#include #include "viewmgr.hxx" FG_USING_STD( vector ); diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 9cd830f71..d3246848e 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -83,6 +83,10 @@ #endif #include #include +#ifdef ENABLE_AUDIO_SUPPORT +# include +# include +#endif #include