From d2d2427288972f723acb005d072f00a24df9428b Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 11 May 2010 21:00:45 +0200 Subject: [PATCH] Changed: #876 Nel driver_xaudio2 and driver_dsound failed to compile --- .../src/sound/driver/dsound/buffer_dsound.cpp | 2 - .../src/sound/driver/dsound/buffer_dsound.h | 4 +- .../sound/driver/dsound/listener_dsound.cpp | 2 - .../src/sound/driver/dsound/listener_dsound.h | 4 +- .../sound/driver/dsound/sound_driver_dsound.h | 6 +-- .../src/sound/driver/dsound/source_dsound.cpp | 4 -- .../src/sound/driver/dsound/source_dsound.h | 8 ++- code/nel/src/sound/driver/dsound/stddsound.h | 17 ++++-- .../nel/src/sound/driver/fmod/buffer_fmod.cpp | 2 - code/nel/src/sound/driver/fmod/buffer_fmod.h | 3 +- .../src/sound/driver/fmod/listener_fmod.cpp | 4 -- .../nel/src/sound/driver/fmod/listener_fmod.h | 8 +-- .../sound/driver/fmod/music_channel_fmod.cpp | 12 ----- .../sound/driver/fmod/music_channel_fmod.h | 8 +-- .../sound/driver/fmod/sound_driver_fmod.cpp | 11 +--- .../src/sound/driver/fmod/sound_driver_fmod.h | 11 +--- .../nel/src/sound/driver/fmod/source_fmod.cpp | 6 --- code/nel/src/sound/driver/fmod/source_fmod.h | 10 ++-- code/nel/src/sound/driver/fmod/stdfmod.h | 16 ++++-- .../nel/src/sound/driver/openal/buffer_al.cpp | 5 +- code/nel/src/sound/driver/openal/buffer_al.h | 3 +- .../nel/src/sound/driver/openal/effect_al.cpp | 1 - code/nel/src/sound/driver/openal/effect_al.h | 7 --- code/nel/src/sound/driver/openal/ext_al.h | 19 +++++-- .../src/sound/driver/openal/listener_al.cpp | 1 - .../nel/src/sound/driver/openal/listener_al.h | 2 +- .../sound/driver/openal/sound_driver_al.cpp | 5 -- .../src/sound/driver/openal/sound_driver_al.h | 3 +- .../nel/src/sound/driver/openal/source_al.cpp | 7 +-- code/nel/src/sound/driver/openal/source_al.h | 4 +- code/nel/src/sound/driver/openal/stdopenal.h | 18 ++++--- .../src/sound/driver/sound_lowlevel.vcproj | 52 ++++++++++--------- .../sound/driver/xaudio2/adpcm_xaudio2.cpp | 7 +-- .../src/sound/driver/xaudio2/adpcm_xaudio2.h | 10 +--- .../sound/driver/xaudio2/buffer_xaudio2.cpp | 9 +--- .../src/sound/driver/xaudio2/buffer_xaudio2.h | 8 +-- .../sound/driver/xaudio2/effect_xaudio2.cpp | 8 +-- .../src/sound/driver/xaudio2/effect_xaudio2.h | 7 --- .../sound/driver/xaudio2/listener_xaudio2.cpp | 8 +-- .../sound/driver/xaudio2/listener_xaudio2.h | 11 +--- .../src/sound/driver/xaudio2/music_buffer.cpp | 9 +--- .../src/sound/driver/xaudio2/music_buffer.h | 7 --- .../driver/xaudio2/music_buffer_vorbis.cpp | 8 +-- .../driver/xaudio2/music_buffer_vorbis.h | 1 - .../driver/xaudio2/music_channel_xaudio2.cpp | 13 +---- .../driver/xaudio2/music_channel_xaudio2.h | 8 +-- .../driver/xaudio2/sound_driver_xaudio2.cpp | 16 +----- .../driver/xaudio2/sound_driver_xaudio2.h | 7 --- .../sound/driver/xaudio2/source_xaudio2.cpp | 12 +---- .../src/sound/driver/xaudio2/source_xaudio2.h | 12 ++--- .../nel/src/sound/driver/xaudio2/stdxaudio2.h | 31 ++++++++--- 51 files changed, 148 insertions(+), 309 deletions(-) diff --git a/code/nel/src/sound/driver/dsound/buffer_dsound.cpp b/code/nel/src/sound/driver/dsound/buffer_dsound.cpp index c42786890..29095ccf9 100644 --- a/code/nel/src/sound/driver/dsound/buffer_dsound.cpp +++ b/code/nel/src/sound/driver/dsound/buffer_dsound.cpp @@ -17,8 +17,6 @@ #include "stddsound.h" #include "buffer_dsound.h" -#include "nel/misc/path.h" -#include "nel/misc/file.h" #include "sound_driver_dsound.h" #define NOMINMAX diff --git a/code/nel/src/sound/driver/dsound/buffer_dsound.h b/code/nel/src/sound/driver/dsound/buffer_dsound.h index eaca10985..09dbeb9cf 100644 --- a/code/nel/src/sound/driver/dsound/buffer_dsound.h +++ b/code/nel/src/sound/driver/dsound/buffer_dsound.h @@ -17,9 +17,7 @@ #ifndef NL_BUFFER_DSOUND_H #define NL_BUFFER_DSOUND_H - -#include "nel/sound/driver/buffer.h" - +#include namespace NLSOUND { diff --git a/code/nel/src/sound/driver/dsound/listener_dsound.cpp b/code/nel/src/sound/driver/dsound/listener_dsound.cpp index 9e81234a0..0a861a518 100644 --- a/code/nel/src/sound/driver/dsound/listener_dsound.cpp +++ b/code/nel/src/sound/driver/dsound/listener_dsound.cpp @@ -15,8 +15,6 @@ // along with this program. If not, see . #include "stddsound.h" -#include "nel/sound/driver/sound_driver.h" - #include "listener_dsound.h" #include "sound_driver_dsound.h" diff --git a/code/nel/src/sound/driver/dsound/listener_dsound.h b/code/nel/src/sound/driver/dsound/listener_dsound.h index a7dc3b7e5..28f9eb120 100644 --- a/code/nel/src/sound/driver/dsound/listener_dsound.h +++ b/code/nel/src/sound/driver/dsound/listener_dsound.h @@ -17,9 +17,7 @@ #ifndef NL_LISTENER_DSOUND_H #define NL_LISTENER_DSOUND_H -#include "nel/sound/driver/listener.h" -#include "nel/sound/driver/sound_driver.h" -#include +#include namespace NLSOUND { diff --git a/code/nel/src/sound/driver/dsound/sound_driver_dsound.h b/code/nel/src/sound/driver/dsound/sound_driver_dsound.h index 4aa8ec23d..ad87d1e8c 100644 --- a/code/nel/src/sound/driver/dsound/sound_driver_dsound.h +++ b/code/nel/src/sound/driver/dsound/sound_driver_dsound.h @@ -17,12 +17,10 @@ #ifndef NL_SOUND_DRIVER_DSOUND_H #define NL_SOUND_DRIVER_DSOUND_H -#include "nel/misc/log.h" -#include "nel/sound/driver/sound_driver.h" +#include + #include "source_dsound.h" #include "buffer_dsound.h" -#include "nel/sound/driver/sound_driver.h" -#include namespace NLSOUND { diff --git a/code/nel/src/sound/driver/dsound/source_dsound.cpp b/code/nel/src/sound/driver/dsound/source_dsound.cpp index f0f0e261d..75447a5f2 100644 --- a/code/nel/src/sound/driver/dsound/source_dsound.cpp +++ b/code/nel/src/sound/driver/dsound/source_dsound.cpp @@ -16,14 +16,10 @@ #include "stddsound.h" -#include "nel/misc/hierarchical_timer.h" #include "source_dsound.h" #include "sound_driver_dsound.h" #include "buffer_dsound.h" #include "listener_dsound.h" -#include "nel/sound/driver/sound_driver.h" - -#include using namespace NLMISC; diff --git a/code/nel/src/sound/driver/dsound/source_dsound.h b/code/nel/src/sound/driver/dsound/source_dsound.h index f11e82d60..028317a21 100644 --- a/code/nel/src/sound/driver/dsound/source_dsound.h +++ b/code/nel/src/sound/driver/dsound/source_dsound.h @@ -17,11 +17,9 @@ #ifndef NL_SOURCE_DSOUND_H #define NL_SOURCE_DSOUND_H -#include "nel/sound/driver/source.h" -#include "nel/sound/driver/sound_driver.h" -#include "nel/sound/driver/buffer.h" - -#include +#include +#include +#include namespace NLSOUND { diff --git a/code/nel/src/sound/driver/dsound/stddsound.h b/code/nel/src/sound/driver/dsound/stddsound.h index 8fe42ff97..eef678731 100644 --- a/code/nel/src/sound/driver/dsound/stddsound.h +++ b/code/nel/src/sound/driver/dsound/stddsound.h @@ -22,15 +22,24 @@ # include #endif +#include + +#include +#include + #include #include #include #include #include +#include +#include +#include +#include -#include "nel/sound/driver/sound_driver.h" -#include "nel/sound/driver/buffer.h" -#include "nel/sound/driver/source.h" -#include "nel/sound/driver/listener.h" +#include +#include +#include +#include /* end of file */ diff --git a/code/nel/src/sound/driver/fmod/buffer_fmod.cpp b/code/nel/src/sound/driver/fmod/buffer_fmod.cpp index 48a631289..be2dda84b 100644 --- a/code/nel/src/sound/driver/fmod/buffer_fmod.cpp +++ b/code/nel/src/sound/driver/fmod/buffer_fmod.cpp @@ -17,8 +17,6 @@ #include "stdfmod.h" #include "buffer_fmod.h" -#include "nel/misc/path.h" -#include "nel/misc/file.h" #include "sound_driver_fmod.h" #ifdef NL_OS_WINDOWS diff --git a/code/nel/src/sound/driver/fmod/buffer_fmod.h b/code/nel/src/sound/driver/fmod/buffer_fmod.h index 176e7e624..95fab47ec 100644 --- a/code/nel/src/sound/driver/fmod/buffer_fmod.h +++ b/code/nel/src/sound/driver/fmod/buffer_fmod.h @@ -18,8 +18,7 @@ #define NL_BUFFER_FMOD_H -#include "nel/sound/driver/buffer.h" -#include +#include namespace NLSOUND { diff --git a/code/nel/src/sound/driver/fmod/listener_fmod.cpp b/code/nel/src/sound/driver/fmod/listener_fmod.cpp index 540a58461..3c315041a 100644 --- a/code/nel/src/sound/driver/fmod/listener_fmod.cpp +++ b/code/nel/src/sound/driver/fmod/listener_fmod.cpp @@ -15,13 +15,9 @@ // along with this program. If not, see . #include "stdfmod.h" -#include "nel/sound/driver/sound_driver.h" - #include "listener_fmod.h" #include "sound_driver_fmod.h" -#include - using namespace NLMISC; diff --git a/code/nel/src/sound/driver/fmod/listener_fmod.h b/code/nel/src/sound/driver/fmod/listener_fmod.h index cb9a3c94a..1e8028f3b 100644 --- a/code/nel/src/sound/driver/fmod/listener_fmod.h +++ b/code/nel/src/sound/driver/fmod/listener_fmod.h @@ -17,13 +17,7 @@ #ifndef NL_LISTENER_FMOD_H #define NL_LISTENER_FMOD_H - -#include "nel/sound/driver/listener.h" -#include "nel/misc/matrix.h" -#include "nel/sound/driver/sound_driver.h" -//#ifdef NL_OS_WINDOWS -//#include -//#endif +#include namespace NLSOUND { diff --git a/code/nel/src/sound/driver/fmod/music_channel_fmod.cpp b/code/nel/src/sound/driver/fmod/music_channel_fmod.cpp index f9b0806b1..084c6e278 100644 --- a/code/nel/src/sound/driver/fmod/music_channel_fmod.cpp +++ b/code/nel/src/sound/driver/fmod/music_channel_fmod.cpp @@ -16,18 +16,6 @@ #include "stdfmod.h" #include "music_channel_fmod.h" - -// STL includes - -// 3rd Party includes -#include - -// NeL includes -#include -#include -#include - -// Project includes #include "sound_driver_fmod.h" using namespace std; diff --git a/code/nel/src/sound/driver/fmod/music_channel_fmod.h b/code/nel/src/sound/driver/fmod/music_channel_fmod.h index da046bca9..1f61fa3f8 100644 --- a/code/nel/src/sound/driver/fmod/music_channel_fmod.h +++ b/code/nel/src/sound/driver/fmod/music_channel_fmod.h @@ -16,14 +16,8 @@ #ifndef NL_MUSIC_CHANNEL_FMOD_H #define NL_MUSIC_CHANNEL_FMOD_H -#include -// STL includes - -// NeL includes -#include "nel/sound/driver/music_channel.h" - -// Project includes +#include struct FSOUND_STREAM; diff --git a/code/nel/src/sound/driver/fmod/sound_driver_fmod.cpp b/code/nel/src/sound/driver/fmod/sound_driver_fmod.cpp index 3e4e05e16..60c8bab75 100644 --- a/code/nel/src/sound/driver/fmod/sound_driver_fmod.cpp +++ b/code/nel/src/sound/driver/fmod/sound_driver_fmod.cpp @@ -16,18 +16,11 @@ #include "stdfmod.h" -#include - -#include "nel/misc/hierarchical_timer.h" -#include "nel/misc/path.h" -#include "nel/misc/file.h" -#include "nel/misc/dynloadlib.h" -#include "nel/misc/big_file.h" -#include "nel/sound/driver/sound_driver.h" - #include "sound_driver_fmod.h" #include "listener_fmod.h" #include "music_channel_fmod.h" +#include "source_fmod.h" +#include "buffer_fmod.h" using namespace std; using namespace NLMISC; diff --git a/code/nel/src/sound/driver/fmod/sound_driver_fmod.h b/code/nel/src/sound/driver/fmod/sound_driver_fmod.h index 54caf6c1b..a3768e8e5 100644 --- a/code/nel/src/sound/driver/fmod/sound_driver_fmod.h +++ b/code/nel/src/sound/driver/fmod/sound_driver_fmod.h @@ -16,17 +16,8 @@ #ifndef NL_SOUND_DRIVER_FMOD_H #define NL_SOUND_DRIVER_FMOD_H -#include -// STL includes -#include - -// NeL includes -#include - -// Project includes -#include "source_fmod.h" -#include "buffer_fmod.h" +#include namespace NLSOUND { class IListener; diff --git a/code/nel/src/sound/driver/fmod/source_fmod.cpp b/code/nel/src/sound/driver/fmod/source_fmod.cpp index fd68d577d..323213a90 100644 --- a/code/nel/src/sound/driver/fmod/source_fmod.cpp +++ b/code/nel/src/sound/driver/fmod/source_fmod.cpp @@ -16,16 +16,10 @@ #include "stdfmod.h" -#include "nel/misc/hierarchical_timer.h" #include "source_fmod.h" #include "sound_driver_fmod.h" #include "buffer_fmod.h" #include "listener_fmod.h" -#include "nel/sound/driver/sound_driver.h" -#include - - -#include using namespace NLMISC; diff --git a/code/nel/src/sound/driver/fmod/source_fmod.h b/code/nel/src/sound/driver/fmod/source_fmod.h index 015a613e3..307da4ec5 100644 --- a/code/nel/src/sound/driver/fmod/source_fmod.h +++ b/code/nel/src/sound/driver/fmod/source_fmod.h @@ -17,13 +17,9 @@ #ifndef NL_SOURCE_FMOD_H #define NL_SOURCE_FMOD_H -#include "nel/sound/driver/source.h" -#include "nel/sound/driver/sound_driver.h" -#include "nel/sound/driver/buffer.h" - -//#ifdef NL_OS_WINDOWS -//#include -//#endif +#include +#include +#include namespace NLSOUND { class CBufferFMod; diff --git a/code/nel/src/sound/driver/fmod/stdfmod.h b/code/nel/src/sound/driver/fmod/stdfmod.h index 44d67762b..d86a82d54 100644 --- a/code/nel/src/sound/driver/fmod/stdfmod.h +++ b/code/nel/src/sound/driver/fmod/stdfmod.h @@ -21,16 +21,24 @@ #endif #include +#include + #include #include #include #include #include #include +#include +#include +#include +#include +#include +#include -#include "nel/sound/driver/sound_driver.h" -#include "nel/sound/driver/buffer.h" -#include "nel/sound/driver/source.h" -#include "nel/sound/driver/listener.h" +#include +#include +#include +#include /* end of file */ diff --git a/code/nel/src/sound/driver/openal/buffer_al.cpp b/code/nel/src/sound/driver/openal/buffer_al.cpp index acd02f966..63cdd7432 100644 --- a/code/nel/src/sound/driver/openal/buffer_al.cpp +++ b/code/nel/src/sound/driver/openal/buffer_al.cpp @@ -15,11 +15,8 @@ // along with this program. If not, see . #include "stdopenal.h" -#include "buffer_al.h" - -#include - #include "sound_driver_al.h" +#include "buffer_al.h" using namespace NLMISC; diff --git a/code/nel/src/sound/driver/openal/buffer_al.h b/code/nel/src/sound/driver/openal/buffer_al.h index 31c2959c7..e134ca7b6 100644 --- a/code/nel/src/sound/driver/openal/buffer_al.h +++ b/code/nel/src/sound/driver/openal/buffer_al.h @@ -16,7 +16,8 @@ #ifndef NL_BUFFER_AL_H #define NL_BUFFER_AL_H -#include + +#include namespace NLSOUND { diff --git a/code/nel/src/sound/driver/openal/effect_al.cpp b/code/nel/src/sound/driver/openal/effect_al.cpp index 412e4f653..9f2f98968 100644 --- a/code/nel/src/sound/driver/openal/effect_al.cpp +++ b/code/nel/src/sound/driver/openal/effect_al.cpp @@ -16,7 +16,6 @@ #include "stdopenal.h" #include "effect_al.h" - #include "sound_driver_al.h" using namespace std; diff --git a/code/nel/src/sound/driver/openal/effect_al.h b/code/nel/src/sound/driver/openal/effect_al.h index 4c93465c2..e5a49ab80 100644 --- a/code/nel/src/sound/driver/openal/effect_al.h +++ b/code/nel/src/sound/driver/openal/effect_al.h @@ -16,13 +16,6 @@ #ifndef NLSOUND_EFFECT_AL_H #define NLSOUND_EFFECT_AL_H -#include - -// STL includes - -// NeL includes - -// Project includes namespace NLSOUND { class CSoundDriverAL; diff --git a/code/nel/src/sound/driver/openal/ext_al.h b/code/nel/src/sound/driver/openal/ext_al.h index ce35cc8a2..f55740f51 100644 --- a/code/nel/src/sound/driver/openal/ext_al.h +++ b/code/nel/src/sound/driver/openal/ext_al.h @@ -1,11 +1,24 @@ - +// NeL - MMORPG Framework +// Copyright (C) 2010 Winch Gate Property Limited +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . #ifndef NL_EXT_AL_H #define NL_EXT_AL_H -#include "stdopenal.h" #ifdef NL_OS_WINDOWS -# define EFX_CREATIVE_AVAILABLE 0 +# define EFX_CREATIVE_AVAILABLE 1 # define EAX_AVAILABLE 0 #else # define EFX_CREATIVE_AVAILABLE 0 diff --git a/code/nel/src/sound/driver/openal/listener_al.cpp b/code/nel/src/sound/driver/openal/listener_al.cpp index 97c9faa64..da7e6bc31 100644 --- a/code/nel/src/sound/driver/openal/listener_al.cpp +++ b/code/nel/src/sound/driver/openal/listener_al.cpp @@ -16,7 +16,6 @@ #include "stdopenal.h" #include "listener_al.h" - #include "sound_driver_al.h" using namespace NLMISC; diff --git a/code/nel/src/sound/driver/openal/listener_al.h b/code/nel/src/sound/driver/openal/listener_al.h index 146ef67eb..f0aa4450d 100644 --- a/code/nel/src/sound/driver/openal/listener_al.h +++ b/code/nel/src/sound/driver/openal/listener_al.h @@ -16,8 +16,8 @@ #ifndef NL_LISTENER_AL_H #define NL_LISTENER_AL_H -#include +#include #include namespace NLSOUND { diff --git a/code/nel/src/sound/driver/openal/sound_driver_al.cpp b/code/nel/src/sound/driver/openal/sound_driver_al.cpp index e2c903779..f8ba083be 100644 --- a/code/nel/src/sound/driver/openal/sound_driver_al.cpp +++ b/code/nel/src/sound/driver/openal/sound_driver_al.cpp @@ -16,11 +16,6 @@ #include "stdopenal.h" #include "sound_driver_al.h" - -#include -#include -#include - #include "buffer_al.h" #include "listener_al.h" #include "effect_al.h" diff --git a/code/nel/src/sound/driver/openal/sound_driver_al.h b/code/nel/src/sound/driver/openal/sound_driver_al.h index deb7d51aa..3260acb1f 100644 --- a/code/nel/src/sound/driver/openal/sound_driver_al.h +++ b/code/nel/src/sound/driver/openal/sound_driver_al.h @@ -16,7 +16,8 @@ #ifndef NL_SOUND_DRIVER_AL_H #define NL_SOUND_DRIVER_AL_H -#include + +#include namespace NLSOUND { class CBufferAL; diff --git a/code/nel/src/sound/driver/openal/source_al.cpp b/code/nel/src/sound/driver/openal/source_al.cpp index 839e691cf..1b8795c9a 100644 --- a/code/nel/src/sound/driver/openal/source_al.cpp +++ b/code/nel/src/sound/driver/openal/source_al.cpp @@ -15,16 +15,11 @@ // along with this program. If not, see . #include "stdopenal.h" -#include "source_al.h" - -#include -#include -#include - #include "sound_driver_al.h" #include "listener_al.h" #include "effect_al.h" #include "buffer_al.h" +#include "source_al.h" using namespace std; using namespace NLMISC; diff --git a/code/nel/src/sound/driver/openal/source_al.h b/code/nel/src/sound/driver/openal/source_al.h index b35960d0a..7972548a6 100644 --- a/code/nel/src/sound/driver/openal/source_al.h +++ b/code/nel/src/sound/driver/openal/source_al.h @@ -16,8 +16,8 @@ #ifndef NL_SOURCE_AL_H #define NL_SOURCE_AL_H -#include -#include + +#include namespace NLSOUND { class IBuffer; diff --git a/code/nel/src/sound/driver/openal/stdopenal.h b/code/nel/src/sound/driver/openal/stdopenal.h index 01b3ca24f..4bd9fd2a3 100644 --- a/code/nel/src/sound/driver/openal/stdopenal.h +++ b/code/nel/src/sound/driver/openal/stdopenal.h @@ -30,6 +30,10 @@ #include #include #include +#include +#include +#include +#include #include #include @@ -38,12 +42,14 @@ #include #include #include - -#include "nel/sound/driver/sound_driver.h" -#include "nel/sound/driver/buffer.h" -#include "nel/sound/driver/source.h" -#include "nel/sound/driver/listener.h" -#include "nel/sound/driver/effect.h" +#include +#include +#include +#include +#include +#include +#include +#include #include "ext_al.h" diff --git a/code/nel/src/sound/driver/sound_lowlevel.vcproj b/code/nel/src/sound/driver/sound_lowlevel.vcproj index 341762360..48c25fd38 100644 --- a/code/nel/src/sound/driver/sound_lowlevel.vcproj +++ b/code/nel/src/sound/driver/sound_lowlevel.vcproj @@ -316,54 +316,58 @@ - - + + + + + + + + + + + + + - - - - - - - - - - diff --git a/code/nel/src/sound/driver/xaudio2/adpcm_xaudio2.cpp b/code/nel/src/sound/driver/xaudio2/adpcm_xaudio2.cpp index 2a84e4cda..259690f8b 100644 --- a/code/nel/src/sound/driver/xaudio2/adpcm_xaudio2.cpp +++ b/code/nel/src/sound/driver/xaudio2/adpcm_xaudio2.cpp @@ -15,15 +15,10 @@ // along with this program. If not, see . #include "stdxaudio2.h" -#include "adpcm_xaudio2.h" - -// STL includes - -// NeL includes -#include // Project includes #include "buffer_xaudio2.h" +#include "adpcm_xaudio2.h" using namespace std; // using namespace NLMISC; diff --git a/code/nel/src/sound/driver/xaudio2/adpcm_xaudio2.h b/code/nel/src/sound/driver/xaudio2/adpcm_xaudio2.h index dc75b5d77..f64939238 100644 --- a/code/nel/src/sound/driver/xaudio2/adpcm_xaudio2.h +++ b/code/nel/src/sound/driver/xaudio2/adpcm_xaudio2.h @@ -16,16 +16,8 @@ #ifndef NLSOUND_ADPCM_XAUDIO2_H #define NLSOUND_ADPCM_XAUDIO2_H -#include "stdxaudio2.h" -// STL includes - -// NeL includes -#include -#include "nel/sound/driver/buffer.h" - -// Project includes -// #include "sound_driver_xaudio2.h" +#include namespace NLSOUND { class CBufferXAudio2; diff --git a/code/nel/src/sound/driver/xaudio2/buffer_xaudio2.cpp b/code/nel/src/sound/driver/xaudio2/buffer_xaudio2.cpp index 246f2b8e9..a5e9bc672 100644 --- a/code/nel/src/sound/driver/xaudio2/buffer_xaudio2.cpp +++ b/code/nel/src/sound/driver/xaudio2/buffer_xaudio2.cpp @@ -15,16 +15,9 @@ // along with this program. If not, see . #include "stdxaudio2.h" -#include "buffer_xaudio2.h" - -// STL includes - -// NeL includes -#include -#include -#include // Project includes +#include "buffer_xaudio2.h" #include "sound_driver_xaudio2.h" using namespace std; diff --git a/code/nel/src/sound/driver/xaudio2/buffer_xaudio2.h b/code/nel/src/sound/driver/xaudio2/buffer_xaudio2.h index cc227314c..dd978bbd4 100644 --- a/code/nel/src/sound/driver/xaudio2/buffer_xaudio2.h +++ b/code/nel/src/sound/driver/xaudio2/buffer_xaudio2.h @@ -16,14 +16,8 @@ #ifndef NLSOUND_BUFFER_XAUDIO2_H #define NLSOUND_BUFFER_XAUDIO2_H -#include "stdxaudio2.h" -// STL includes - -// NeL includes -#include "nel/sound/driver/buffer.h" - -// Project includes +#include namespace NLSOUND { class CSoundDriverXAudio2; diff --git a/code/nel/src/sound/driver/xaudio2/effect_xaudio2.cpp b/code/nel/src/sound/driver/xaudio2/effect_xaudio2.cpp index 056778246..0d29f925d 100644 --- a/code/nel/src/sound/driver/xaudio2/effect_xaudio2.cpp +++ b/code/nel/src/sound/driver/xaudio2/effect_xaudio2.cpp @@ -15,17 +15,11 @@ // along with this program. If not, see . #include "stdxaudio2.h" -#include "effect_xaudio2.h" - -// STL includes - -// NeL includes -// #include -#include // Project includes #include "sound_driver_xaudio2.h" #include "listener_xaudio2.h" +#include "effect_xaudio2.h" using namespace std; using namespace NLMISC; diff --git a/code/nel/src/sound/driver/xaudio2/effect_xaudio2.h b/code/nel/src/sound/driver/xaudio2/effect_xaudio2.h index 24d4fe0b7..71170c6e7 100644 --- a/code/nel/src/sound/driver/xaudio2/effect_xaudio2.h +++ b/code/nel/src/sound/driver/xaudio2/effect_xaudio2.h @@ -16,13 +16,6 @@ #ifndef NLSOUND_EFFECT_XAUDIO2_H #define NLSOUND_EFFECT_XAUDIO2_H -#include - -// STL includes - -// NeL includes - -// Project includes namespace NLSOUND { class CSoundDriverXAudio2; diff --git a/code/nel/src/sound/driver/xaudio2/listener_xaudio2.cpp b/code/nel/src/sound/driver/xaudio2/listener_xaudio2.cpp index 88db65056..fb65e43b1 100644 --- a/code/nel/src/sound/driver/xaudio2/listener_xaudio2.cpp +++ b/code/nel/src/sound/driver/xaudio2/listener_xaudio2.cpp @@ -15,16 +15,10 @@ // along with this program. If not, see . #include "stdxaudio2.h" -#include "listener_xaudio2.h" - -// STL includes - -// NeL includes -#include "nel/sound/driver/sound_driver.h" -#include // Project includes #include "sound_driver_xaudio2.h" +#include "listener_xaudio2.h" using namespace std; using namespace NLMISC; diff --git a/code/nel/src/sound/driver/xaudio2/listener_xaudio2.h b/code/nel/src/sound/driver/xaudio2/listener_xaudio2.h index c193b71f2..5dcdcc17e 100644 --- a/code/nel/src/sound/driver/xaudio2/listener_xaudio2.h +++ b/code/nel/src/sound/driver/xaudio2/listener_xaudio2.h @@ -16,16 +16,9 @@ #ifndef NLSOUND_LISTENER_XAUDIO2_H #define NLSOUND_LISTENER_XAUDIO2_H -#include "stdxaudio2.h" -// STL includes - -// NeL includes -#include "nel/sound/driver/listener.h" -#include "nel/sound/driver/sound_driver.h" -#include - -// Project includes +#include +#include namespace NLSOUND { class CSoundDriverXAudio2; diff --git a/code/nel/src/sound/driver/xaudio2/music_buffer.cpp b/code/nel/src/sound/driver/xaudio2/music_buffer.cpp index 2bf553a90..1ebf30b4c 100644 --- a/code/nel/src/sound/driver/xaudio2/music_buffer.cpp +++ b/code/nel/src/sound/driver/xaudio2/music_buffer.cpp @@ -15,17 +15,10 @@ // along with this program. If not, see . #include "stdxaudio2.h" -#include "music_buffer.h" - -// STL includes - -// NeL includes -#include -#include -#include // Project includes #include "music_buffer_vorbis.h" +#include "music_buffer.h" using namespace std; using namespace NLMISC; diff --git a/code/nel/src/sound/driver/xaudio2/music_buffer.h b/code/nel/src/sound/driver/xaudio2/music_buffer.h index 05d0d57f8..a79f009d8 100644 --- a/code/nel/src/sound/driver/xaudio2/music_buffer.h +++ b/code/nel/src/sound/driver/xaudio2/music_buffer.h @@ -16,13 +16,6 @@ #ifndef NLSOUND_MUSIC_BUFFER_H #define NLSOUND_MUSIC_BUFFER_H -#include "stdxaudio2.h" - -// STL includes - -// NeL includes - -// Project includes namespace NLMISC { class IStream; diff --git a/code/nel/src/sound/driver/xaudio2/music_buffer_vorbis.cpp b/code/nel/src/sound/driver/xaudio2/music_buffer_vorbis.cpp index 4d6c0f76b..8eaeb375f 100644 --- a/code/nel/src/sound/driver/xaudio2/music_buffer_vorbis.cpp +++ b/code/nel/src/sound/driver/xaudio2/music_buffer_vorbis.cpp @@ -15,15 +15,9 @@ // along with this program. If not, see . #include "stdxaudio2.h" -#include "music_buffer_vorbis.h" - -// STL includes - -// NeL includes -#include -#include // Project includes +#include "music_buffer_vorbis.h" using namespace std; using namespace NLMISC; diff --git a/code/nel/src/sound/driver/xaudio2/music_buffer_vorbis.h b/code/nel/src/sound/driver/xaudio2/music_buffer_vorbis.h index 78ae329f5..ece5caebb 100644 --- a/code/nel/src/sound/driver/xaudio2/music_buffer_vorbis.h +++ b/code/nel/src/sound/driver/xaudio2/music_buffer_vorbis.h @@ -16,7 +16,6 @@ #ifndef NLSOUND_MUSIC_BUFFER_VORBIS_H #define NLSOUND_MUSIC_BUFFER_VORBIS_H -#include "stdxaudio2.h" // STL includes diff --git a/code/nel/src/sound/driver/xaudio2/music_channel_xaudio2.cpp b/code/nel/src/sound/driver/xaudio2/music_channel_xaudio2.cpp index 7429f736b..d1cd81eae 100644 --- a/code/nel/src/sound/driver/xaudio2/music_channel_xaudio2.cpp +++ b/code/nel/src/sound/driver/xaudio2/music_channel_xaudio2.cpp @@ -15,20 +15,11 @@ // along with this program. If not, see . #include "stdxaudio2.h" -#include "music_channel_xaudio2.h" - -// STL includes - -// NeL includes -#include -#include -#include -#include -#include -#include "nel/sound/driver/music_buffer.h" // Project includes #include "sound_driver_xaudio2.h" +#include "music_buffer.h" +#include "music_channel_xaudio2.h" using namespace std; using namespace NLMISC; diff --git a/code/nel/src/sound/driver/xaudio2/music_channel_xaudio2.h b/code/nel/src/sound/driver/xaudio2/music_channel_xaudio2.h index d843d606a..ade13e25f 100644 --- a/code/nel/src/sound/driver/xaudio2/music_channel_xaudio2.h +++ b/code/nel/src/sound/driver/xaudio2/music_channel_xaudio2.h @@ -16,14 +16,8 @@ #ifndef NLSOUND_MUSIC_CHANNEL_XAUDIO2_H #define NLSOUND_MUSIC_CHANNEL_XAUDIO2_H -#include "stdxaudio2.h" -// STL includes - -// NeL includes -#include "nel/sound/driver/music_channel.h" - -// Project includes +#include namespace NLSOUND { class CSoundDriverXAudio2; diff --git a/code/nel/src/sound/driver/xaudio2/sound_driver_xaudio2.cpp b/code/nel/src/sound/driver/xaudio2/sound_driver_xaudio2.cpp index d469b8ad6..11305c3f8 100644 --- a/code/nel/src/sound/driver/xaudio2/sound_driver_xaudio2.cpp +++ b/code/nel/src/sound/driver/xaudio2/sound_driver_xaudio2.cpp @@ -15,26 +15,14 @@ // along with this program. If not, see . #include "stdxaudio2.h" -#include "sound_driver_xaudio2.h" - -// STL includes -#include - -// NeL includes -#include -#include -#include -#include -#include -#include -#include "nel/sound/driver/sound_driver.h" -#include "music_buffer.h" // ../ // Project includes #include "listener_xaudio2.h" #include "source_xaudio2.h" #include "music_channel_xaudio2.h" #include "effect_xaudio2.h" +#include "sound_driver_xaudio2.h" +#include "music_buffer.h" using namespace std; using namespace NLMISC; diff --git a/code/nel/src/sound/driver/xaudio2/sound_driver_xaudio2.h b/code/nel/src/sound/driver/xaudio2/sound_driver_xaudio2.h index d484b9911..681d36254 100644 --- a/code/nel/src/sound/driver/xaudio2/sound_driver_xaudio2.h +++ b/code/nel/src/sound/driver/xaudio2/sound_driver_xaudio2.h @@ -16,13 +16,6 @@ #ifndef NLSOUND_SOUND_DRIVER_XAUDIO2_H //todo: support MAKEINTRESOURCE for music files? #define NLSOUND_SOUND_DRIVER_XAUDIO2_H -#include "stdxaudio2.h" - -// STL includes -#include - -// NeL includes -#include // Project includes #include "source_xaudio2.h" diff --git a/code/nel/src/sound/driver/xaudio2/source_xaudio2.cpp b/code/nel/src/sound/driver/xaudio2/source_xaudio2.cpp index 059df9bb5..9c34beaf8 100644 --- a/code/nel/src/sound/driver/xaudio2/source_xaudio2.cpp +++ b/code/nel/src/sound/driver/xaudio2/source_xaudio2.cpp @@ -17,17 +17,6 @@ // curve cone eax time #include "stdxaudio2.h" -#include "source_xaudio2.h" - -// STL includes -#include -#include -#include - -// NeL includes -#include -#include -#include // Project includes #include "sound_driver_xaudio2.h" @@ -35,6 +24,7 @@ #include "listener_xaudio2.h" #include "adpcm_xaudio2.h" #include "effect_xaudio2.h" +#include "source_xaudio2.h" using namespace std; using namespace NLMISC; diff --git a/code/nel/src/sound/driver/xaudio2/source_xaudio2.h b/code/nel/src/sound/driver/xaudio2/source_xaudio2.h index 7bddefca5..910fe2d8d 100644 --- a/code/nel/src/sound/driver/xaudio2/source_xaudio2.h +++ b/code/nel/src/sound/driver/xaudio2/source_xaudio2.h @@ -16,16 +16,10 @@ #ifndef NLSOUND_SOURCE_XAUDIO2_H #define NLSOUND_SOURCE_XAUDIO2_H -#include "stdxaudio2.h" -// STL includes - -// NeL includes -#include "nel/sound/driver/source.h" -#include "nel/sound/driver/sound_driver.h" -#include "nel/sound/driver/buffer.h" - -// Project includes +#include +#include +#include namespace NLSOUND { class CSoundDriverXAudio2; diff --git a/code/nel/src/sound/driver/xaudio2/stdxaudio2.h b/code/nel/src/sound/driver/xaudio2/stdxaudio2.h index 863ef7ddc..ae2169527 100644 --- a/code/nel/src/sound/driver/xaudio2/stdxaudio2.h +++ b/code/nel/src/sound/driver/xaudio2/stdxaudio2.h @@ -20,6 +20,10 @@ // STL includes #include +#include +#include +#include +#include // 3rd Party Includes #define XAUDIO2_HELPER_FUNCTIONS @@ -28,19 +32,30 @@ #include // NeL includes +#include #include -#include -#include +#include +#include #include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include "nel/sound/driver/sound_driver.h" -#include "nel/sound/driver/buffer.h" -#include "nel/sound/driver/source.h" -#include "nel/sound/driver/listener.h" -#include "nel/sound/driver/effect.h" +#include +#include +#include +#include +#include // Defines #define NLSOUND_XAUDIO2_NAME "NeLSound XAudio2 Driver"