Skip to content

Commit

Permalink
Merge pull request #176 from Xottab-DUTY/xrSound
Browse files Browse the repository at this point in the history
Small xrSound improvements
  • Loading branch information
CrossVR committed Mar 17, 2017
2 parents 3b50a64 + 1b5ce50 commit 792fbf7
Show file tree
Hide file tree
Showing 16 changed files with 35 additions and 41 deletions.
2 changes: 1 addition & 1 deletion src/xrSound/SoundRender.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define SoundRenderH
#pragma once

#include "sound.h"
#include "Sound.h"

class CSoundRender_Core;
class CSoundRender_Source;
Expand Down
4 changes: 2 additions & 2 deletions src/xrSound/SoundRender_Cache.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "stdafx.h"
#pragma hdrstop

#include ".\soundrender_cache.h"
#include "SoundRender_Cache.h"

CSoundRender_Cache::CSoundRender_Cache()
{
Expand Down Expand Up @@ -80,7 +80,7 @@ BOOL CSoundRender_Cache::request(cache_cat& cat, u32 id)

void CSoundRender_Cache::initialize(u32 _total_kb_approx, u32 bytes_per_line)
{
// use twice the requisted memory (to avoid bad configs)
// use twice the requested memory (to avoid bad configs)
_total_kb_approx *= 2;

// calc
Expand Down
6 changes: 3 additions & 3 deletions src/xrSound/SoundRender_Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
#pragma hdrstop

#include "Common/LevelStructure.hpp"
#include "soundrender_core.h"
#include "soundrender_source.h"
#include "soundrender_emitter.h"
#include "SoundRender_Core.h"
#include "SoundRender_Source.h"
#include "SoundRender_Emitter.h"
#pragma warning(push)
#pragma warning(disable : 4995)
#include <eax/eax.h>
Expand Down
4 changes: 2 additions & 2 deletions src/xrSound/SoundRender_CoreA.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "stdafx.h"
#pragma hdrstop

#include "soundrender_coreA.h"
#include "soundrender_targetA.h"
#include "SoundRender_CoreA.h"
#include "SoundRender_TargetA.h"

CSoundRender_CoreA* SoundRenderA = 0;

Expand Down
8 changes: 4 additions & 4 deletions src/xrSound/SoundRender_Emitter.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "stdafx.h"
#pragma hdrstop

#include "soundrender_emitter.h"
#include "soundrender_core.h"
#include "soundrender_source.h"
#include "soundrender_targetA.h"
#include "SoundRender_Emitter.h"
#include "SoundRender_Core.h"
#include "SoundRender_Source.h"
#include "SoundRender_TargetA.h"

extern u32 psSoundModel;
extern float psSoundVEffects;
Expand Down
4 changes: 2 additions & 2 deletions src/xrSound/SoundRender_Emitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#define SoundRender_EmitterH
#pragma once

#include "soundrender.h"
#include "soundrender_environment.h"
#include "SoundRender.h"
#include "SoundRender_Environment.h"

class CSoundRender_Emitter : public CSound_emitter
{
Expand Down
4 changes: 2 additions & 2 deletions src/xrSound/SoundRender_Environment.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "stdafx.h"
#pragma hdrstop

#include "soundrender.h"
#include "soundrender_environment.h"
#include "SoundRender.h"
#include "SoundRender_Environment.h"
#pragma warning(push)
#pragma warning(disable : 4995)
#include <eax/eax.h>
Expand Down
4 changes: 2 additions & 2 deletions src/xrSound/SoundRender_Source.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "stdafx.h"
#pragma hdrstop

#include "soundrender_core.h"
#include "soundrender_source.h"
#include "SoundRender_Core.h"
#include "SoundRender_Source.h"

CSoundRender_Source::CSoundRender_Source()
{
Expand Down
2 changes: 1 addition & 1 deletion src/xrSound/SoundRender_Source.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define SoundRender_SourceH
#pragma once

#include "soundrender_cache.h"
#include "SoundRender_Cache.h"

// refs
struct OggVorbis_File;
Expand Down
4 changes: 2 additions & 2 deletions src/xrSound/SoundRender_Source_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#include <msacm.h>

#include "soundrender_core.h"
#include "soundrender_source.h"
#include "SoundRender_Core.h"
#include "SoundRender_Source.h"

// SEEK_SET 0 File beginning
// SEEK_CUR 1 Current file pointer position
Expand Down
8 changes: 4 additions & 4 deletions src/xrSound/SoundRender_Target.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "stdafx.h"
#pragma hdrstop

#include "soundrender_target.h"
#include "soundrender_core.h"
#include "soundrender_emitter.h"
#include "soundrender_source.h"
#include "SoundRender_Target.h"
#include "SoundRender_Core.h"
#include "SoundRender_Emitter.h"
#include "SoundRender_Source.h"

CSoundRender_Target::CSoundRender_Target(void)
{
Expand Down
2 changes: 1 addition & 1 deletion src/xrSound/SoundRender_Target.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define SoundRender_TargetH
#pragma once

#include "soundrender.h"
#include "SoundRender.h"

class CSoundRender_Target
{
Expand Down
6 changes: 3 additions & 3 deletions src/xrSound/SoundRender_TargetA.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "stdafx.h"
#pragma hdrstop

#include "soundrender_TargetA.h"
#include "soundrender_emitter.h"
#include "soundrender_source.h"
#include "SoundRender_TargetA.h"
#include "SoundRender_Emitter.h"
#include "SoundRender_Source.h"

xr_vector<u8> g_target_temp_data;

Expand Down
4 changes: 2 additions & 2 deletions src/xrSound/SoundRender_TargetA.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#define SoundRender_TargetAH
#pragma once

#include "soundrender_Target.h"
#include "soundrender_CoreA.h"
#include "Soundrender_Target.h"
#include "Soundrender_CoreA.h"

class CSoundRender_TargetA : public CSoundRender_Target
{
Expand Down
8 changes: 1 addition & 7 deletions src/xrSound/stdafx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,5 @@
#pragma comment(lib, "EToolsB.lib")
#pragma comment(lib, "OpenAL32B.lib")
#pragma comment(lib, "dsoundb.lib")
//# pragma comment(lib, "xrapi.lib" )
#else
#pragma comment(lib, "eax.lib")
#pragma comment(lib, "xrCore.lib")
#pragma comment(lib, "xrCDB.lib")
#pragma comment(lib, "dsound.lib")
#pragma comment(lib, "xrapi.lib")
//#pragma comment(lib, "xrAPI.lib")
#endif
6 changes: 3 additions & 3 deletions src/xrSound/xrSound.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
</ClCompile>
<Link>
<AdditionalOptions>/NODEFAULTLIB:LIBCMTD %(AdditionalOptions)</AdditionalOptions>
<AdditionalDependencies>libogg_static.lib;libvorbis_static.lib;libvorbisfile_static.lib;OpenAL32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>libogg_static.lib;libvorbis_static.lib;libvorbisfile_static.lib;OpenAL32.lib;eax.lib;dsound.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SuppressStartupBanner>true</SuppressStartupBanner>
<AdditionalLibraryDirectories>$(SolutionDir)Externals\libvorbis-1.2.3\win32\lib\$(Platform)\Debug;$(SolutionDir)Externals\libogg-1.1.4\win32\lib\$(Platform)\Debug;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<MapExports>false</MapExports>
Expand Down Expand Up @@ -121,7 +121,7 @@
<WarningLevel>Level4</WarningLevel>
</ClCompile>
<Link>
<AdditionalDependencies>libogg_static.lib;libvorbis_static.lib;libvorbisfile_static.lib;OpenAL32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>libogg_static.lib;libvorbis_static.lib;libvorbisfile_static.lib;OpenAL32.lib;eax.lib;dsound.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>$(SolutionDir)Externals\libvorbis-1.2.3\win32\lib\$(Platform)\Release;$(SolutionDir)Externals\libogg-1.1.4\win32\lib\$(Platform)\Release;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<SubSystem>Windows</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
Expand Down Expand Up @@ -153,7 +153,7 @@
<WarningLevel>Level4</WarningLevel>
</ClCompile>
<Link>
<AdditionalDependencies>libogg_static.lib;libvorbis_static.lib;libvorbisfile_static.lib;OpenAL32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>libogg_static.lib;libvorbis_static.lib;libvorbisfile_static.lib;OpenAL32.lib;eax.lib;dsound.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>$(SolutionDir)Externals\libvorbis-1.2.3\win32\lib\$(Platform)\Release;$(SolutionDir)Externals\libogg-1.1.4\win32\lib\$(Platform)\Release;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<SubSystem>Windows</SubSystem>
<LargeAddressAware>true</LargeAddressAware>
Expand Down

0 comments on commit 792fbf7

Please sign in to comment.