Skip to content

Commit

Permalink
Merge pull request #284 from dgelessus/make_pleaxlistenermod_h_includ…
Browse files Browse the repository at this point in the history
…able

Fix plEAXListenerMod.h to be includable from outside libHSPlasma itself
  • Loading branch information
zrax authored Mar 29, 2024
2 parents 2b308bc + 2f2357a commit c7ee59a
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
1 change: 1 addition & 0 deletions Python/PRP/Audio/pyEAXListenerMod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <PRP/Audio/plEAXListenerMod.h>
#include "PRP/Modifier/pyModifier.h"
#include "PRP/KeyedObject/pyKey.h"
#include <3rdPartyLibs/AL/EFX-Util.h>
#include <3rdPartyLibs/AL/efx-unofficial.h>

PY_PLASMA_NEW(EAXListenerMod, plEAXListenerMod)
Expand Down
1 change: 1 addition & 0 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ set(PRP_AUDIO_HEADERS
PRP/Audio/plDirectMusicSound.h
PRP/Audio/plEAXEffects.h
PRP/Audio/plEAXListenerMod.h
PRP/Audio/plEAXStructures.h
PRP/Audio/plSound.h
PRP/Audio/plSoundBuffer.h
PRP/Audio/plWin32Sound.h
Expand Down
2 changes: 1 addition & 1 deletion core/PRP/Audio/plEAXListenerMod.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
#ifndef _PLEAXLISTENERMOD_H
#define _PLEAXLISTENERMOD_H

#include "plEAXStructures.h"
#include "PRP/Modifier/plModifier.h"
#include "Math/hsGeometry3.h"
#include "3rdPartyLibs/AL/EFX-Util.h"

class HSPLASMA_EXPORT plEAXListenerMod : public plSingleModifier
{
Expand Down
43 changes: 43 additions & 0 deletions core/PRP/Audio/plEAXStructures.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Subset of 3rdPartyLibs/AL/EFX-Util.h containing only the structures
// used in the public API of plEAXListenerMod.

#ifndef EAXVECTOR_DEFINED
#define EAXVECTOR_DEFINED
typedef struct _EAXVECTOR
{
float x;
float y;
float z;
} EAXVECTOR;
#endif

#ifndef EAXREVERBPROPERTIES_DEFINED
#define EAXREVERBPROPERTIES_DEFINED
typedef struct _EAXREVERBPROPERTIES
{
unsigned long ulEnvironment;
float flEnvironmentSize;
float flEnvironmentDiffusion;
long lRoom;
long lRoomHF;
long lRoomLF;
float flDecayTime;
float flDecayHFRatio;
float flDecayLFRatio;
long lReflections;
float flReflectionsDelay;
EAXVECTOR vReflectionsPan;
long lReverb;
float flReverbDelay;
EAXVECTOR vReverbPan;
float flEchoTime;
float flEchoDepth;
float flModulationTime;
float flModulationDepth;
float flAirAbsorptionHF;
float flHFReference;
float flLFReference;
float flRoomRolloffFactor;
unsigned long ulFlags;
} EAXREVERBPROPERTIES, *LPEAXREVERBPROPERTIES;
#endif

0 comments on commit c7ee59a

Please sign in to comment.