aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-14 09:02:59 -0800
committerChris Robinson <[email protected]>2018-01-14 09:02:59 -0800
commit63416bf28f0a717941c752fd84015ee35e7f4e4b (patch)
tree9299611381e7103ef32f27cf8670f11479ac1e98 /Alc
parent0152bc0d10901cc60e579e2f7fa6ebf7786e6106 (diff)
Avoid unnecessarily using type aliases
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c9
-rw-r--r--Alc/effects/null.c4
2 files changed, 7 insertions, 6 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index c010ecba..04227ce4 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -1521,7 +1521,7 @@ static void ApplyStablizer(FrontStablizer *Stablizer, ALfloat (*restrict Buffer)
}
}
-static void ApplyDistanceComp(ALfloatBUFFERSIZE *restrict Samples, DistanceComp *distcomp,
+static void ApplyDistanceComp(ALfloat (*restrict Samples)[BUFFERSIZE], DistanceComp *distcomp,
ALfloat *restrict Values, ALsizei SamplesToDo, ALsizei numchans)
{
ALsizei i, c;
@@ -1564,7 +1564,7 @@ static void ApplyDistanceComp(ALfloatBUFFERSIZE *restrict Samples, DistanceComp
}
}
-static void ApplyDither(ALfloatBUFFERSIZE *restrict Samples, ALuint *dither_seed,
+static void ApplyDither(ALfloat (*restrict Samples)[BUFFERSIZE], ALuint *dither_seed,
const ALfloat quant_scale, const ALsizei SamplesToDo,
const ALsizei numchans)
{
@@ -1618,8 +1618,9 @@ DECL_TEMPLATE(ALuint, Conv_ALint, 2147483648u)
#undef DECL_TEMPLATE
#define DECL_TEMPLATE(T, A) \
-static void Write##A(const ALfloatBUFFERSIZE *InBuffer, ALvoid *OutBuffer, \
- ALsizei Offset, ALsizei SamplesToDo, ALsizei numchans) \
+static void Write##A(const ALfloat (*restrict InBuffer)[BUFFERSIZE], \
+ ALvoid *OutBuffer, ALsizei Offset, ALsizei SamplesToDo, \
+ ALsizei numchans) \
{ \
ALsizei i, j; \
for(j = 0;j < numchans;j++) \
diff --git a/Alc/effects/null.c b/Alc/effects/null.c
index a6591c58..f3e8a6df 100644
--- a/Alc/effects/null.c
+++ b/Alc/effects/null.c
@@ -17,7 +17,7 @@ typedef struct ALnullState {
static ALvoid ALnullState_Destruct(ALnullState *state);
static ALboolean ALnullState_deviceUpdate(ALnullState *state, ALCdevice *device);
static ALvoid ALnullState_update(ALnullState *state, const ALCcontext *context, const ALeffectslot *slot, const ALeffectProps *props);
-static ALvoid ALnullState_process(ALnullState *state, ALsizei samplesToDo, const ALfloatBUFFERSIZE*restrict samplesIn, ALfloatBUFFERSIZE*restrict samplesOut, ALsizei NumChannels);
+static ALvoid ALnullState_process(ALnullState *state, ALsizei samplesToDo, const ALfloat (*restrict samplesIn)[BUFFERSIZE], ALfloat (*restrict samplesOut)[BUFFERSIZE], ALsizei mumChannels);
static void *ALnullState_New(size_t size);
static void ALnullState_Delete(void *ptr);
@@ -64,7 +64,7 @@ static ALvoid ALnullState_update(ALnullState* UNUSED(state), const ALCcontext* U
* input to the output buffer. The result should be added to the output buffer,
* not replace it.
*/
-static ALvoid ALnullState_process(ALnullState* UNUSED(state), ALsizei UNUSED(samplesToDo), const ALfloatBUFFERSIZE*restrict UNUSED(samplesIn), ALfloatBUFFERSIZE*restrict UNUSED(samplesOut), ALsizei UNUSED(NumChannels))
+static ALvoid ALnullState_process(ALnullState* UNUSED(state), ALsizei UNUSED(samplesToDo), const ALfloatBUFFERSIZE*restrict UNUSED(samplesIn), ALfloatBUFFERSIZE*restrict UNUSED(samplesOut), ALsizei UNUSED(numChannels))
{
}