aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alSource.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-24 19:29:01 -0800
committerChris Robinson <[email protected]>2018-12-24 19:29:01 -0800
commitfbae41020d8968d0e65af08584df4736b5ed7239 (patch)
treeb2bb3297e5e5b4cf348e4e9379dfa4366dd8aa2d /OpenAL32/Include/alSource.h
parent194e7ff815d744830c8aaedfb0d32ed3c3d01645 (diff)
Remove extraneous typedef, struct, and enum keywords
Diffstat (limited to 'OpenAL32/Include/alSource.h')
-rw-r--r--OpenAL32/Include/alSource.h25
1 files changed, 9 insertions, 16 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h
index 62c6fae3..381e0a9b 100644
--- a/OpenAL32/Include/alSource.h
+++ b/OpenAL32/Include/alSource.h
@@ -9,23 +9,20 @@
#define DEFAULT_SENDS 2
-#ifdef __cplusplus
-extern "C" {
-#endif
-
struct ALbuffer;
struct ALsource;
+struct ALeffectslot;
-typedef struct ALbufferlistitem {
+struct ALbufferlistitem {
std::atomic<ALbufferlistitem*> next;
ALsizei max_samples;
ALsizei num_buffers;
- struct ALbuffer *buffers[];
-} ALbufferlistitem;
+ ALbuffer *buffers[];
+};
-typedef struct ALsource {
+struct ALsource {
/** Source properties. */
ALfloat Pitch;
ALfloat Gain;
@@ -44,9 +41,9 @@ typedef struct ALsource {
ALboolean HeadRelative;
ALboolean Looping;
DistanceModel mDistanceModel;
- enum Resampler Resampler;
+ Resampler mResampler;
ALboolean DirectChannels;
- enum SpatializeMode Spatialize;
+ SpatializeMode mSpatialize;
ALboolean DryGainHFAuto;
ALboolean WetGainAuto;
@@ -73,7 +70,7 @@ typedef struct ALsource {
ALfloat LFReference;
} Direct;
struct SendData {
- struct ALeffectslot *Slot;
+ ALeffectslot *Slot;
ALfloat Gain;
ALfloat GainHF;
ALfloat HFReference;
@@ -114,12 +111,8 @@ typedef struct ALsource {
ALsource(const ALsource&) = delete;
ALsource& operator=(const ALsource&) = delete;
-} ALsource;
+};
void UpdateAllSourceProps(ALCcontext *context);
-#ifdef __cplusplus
-}
-#endif
-
#endif