aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/bformatdec.c20
-rw-r--r--Alc/bformatdec.h2
-rw-r--r--Alc/panning.c8
3 files changed, 15 insertions, 15 deletions
diff --git a/Alc/bformatdec.c b/Alc/bformatdec.c
index 86300f7b..fc0dee47 100644
--- a/Alc/bformatdec.c
+++ b/Alc/bformatdec.c
@@ -233,9 +233,9 @@ int bformatdec_getOrder(const struct BFormatDec *dec)
return 0;
}
-void bformatdec_reset(BFormatDec *dec, const AmbDecConf *conf, ALsizei chancount, ALuint srate, const ALuint chanmap[MAX_OUTPUT_CHANNELS], int flags)
+void bformatdec_reset(BFormatDec *dec, const AmbDecConf *conf, ALsizei chancount, ALuint srate, const ALsizei chanmap[MAX_OUTPUT_CHANNELS], int flags)
{
- static const ALuint map2DTo3D[MAX_AMBI2D_COEFFS] = {
+ static const ALsizei map2DTo3D[MAX_AMBI2D_COEFFS] = {
0, 1, 3, 4, 8, 9, 15
};
const ALfloat *coeff_scale = UnitScale;
@@ -312,7 +312,7 @@ void bformatdec_reset(BFormatDec *dec, const AmbDecConf *conf, ALsizei chancount
{
for(i = 0;i < conf->NumSpeakers;i++)
{
- ALuint chan = chanmap[i];
+ ALsizei chan = chanmap[i];
ALfloat delay;
/* Distance compensation only delays in steps of the sample rate.
@@ -341,15 +341,15 @@ void bformatdec_reset(BFormatDec *dec, const AmbDecConf *conf, ALsizei chancount
dec->DualBand = AL_FALSE;
for(i = 0;i < conf->NumSpeakers;i++)
{
- ALuint chan = chanmap[i];
+ ALsizei chan = chanmap[i];
ALfloat gain;
- ALuint j, k;
+ ALsizei j, k;
if(!dec->Periphonic)
{
for(j = 0,k = 0;j < MAX_AMBI2D_COEFFS;j++)
{
- ALuint l = map2DTo3D[j];
+ ALsizei l = map2DTo3D[j];
if(j == 0) gain = conf->HFOrderGain[0];
else if(j == 1) gain = conf->HFOrderGain[1];
else if(j == 3) gain = conf->HFOrderGain[2];
@@ -385,15 +385,15 @@ void bformatdec_reset(BFormatDec *dec, const AmbDecConf *conf, ALsizei chancount
ratio = powf(10.0f, conf->XOverRatio / 40.0f);
for(i = 0;i < conf->NumSpeakers;i++)
{
- ALuint chan = chanmap[i];
+ ALsizei chan = chanmap[i];
ALfloat gain;
- ALuint j, k;
+ ALsizei j, k;
if(!dec->Periphonic)
{
for(j = 0,k = 0;j < MAX_AMBI2D_COEFFS;j++)
{
- ALuint l = map2DTo3D[j];
+ ALsizei l = map2DTo3D[j];
if(j == 0) gain = conf->HFOrderGain[0] * ratio;
else if(j == 1) gain = conf->HFOrderGain[1] * ratio;
else if(j == 3) gain = conf->HFOrderGain[2] * ratio;
@@ -405,7 +405,7 @@ void bformatdec_reset(BFormatDec *dec, const AmbDecConf *conf, ALsizei chancount
}
for(j = 0,k = 0;j < MAX_AMBI2D_COEFFS;j++)
{
- ALuint l = map2DTo3D[j];
+ ALsizei l = map2DTo3D[j];
if(j == 0) gain = conf->LFOrderGain[0] / ratio;
else if(j == 1) gain = conf->LFOrderGain[1] / ratio;
else if(j == 3) gain = conf->LFOrderGain[2] / ratio;
diff --git a/Alc/bformatdec.h b/Alc/bformatdec.h
index 7024b003..06c14ec3 100644
--- a/Alc/bformatdec.h
+++ b/Alc/bformatdec.h
@@ -32,7 +32,7 @@ enum BFormatDecFlags {
struct BFormatDec *bformatdec_alloc();
void bformatdec_free(struct BFormatDec *dec);
int bformatdec_getOrder(const struct BFormatDec *dec);
-void bformatdec_reset(struct BFormatDec *dec, const struct AmbDecConf *conf, ALsizei chancount, ALuint srate, const ALuint chanmap[MAX_OUTPUT_CHANNELS], int flags);
+void bformatdec_reset(struct BFormatDec *dec, const struct AmbDecConf *conf, ALsizei chancount, ALuint srate, const ALsizei chanmap[MAX_OUTPUT_CHANNELS], int flags);
/* Decodes the ambisonic input to the given output channels. */
void bformatdec_process(struct BFormatDec *dec, ALfloat (*restrict OutBuffer)[BUFFERSIZE], ALsizei OutChannels, const ALfloat (*restrict InSamples)[BUFFERSIZE], ALsizei SamplesToDo);
diff --git a/Alc/panning.c b/Alc/panning.c
index 9b6f9b44..98da032e 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -360,7 +360,7 @@ static void SetChannelMap(const enum Channel *devchans, ChannelConfig *ambicoeff
*outcount = i;
}
-static bool MakeSpeakerMap(ALCdevice *device, const AmbDecConf *conf, ALuint speakermap[MAX_OUTPUT_CHANNELS])
+static bool MakeSpeakerMap(ALCdevice *device, const AmbDecConf *conf, ALsizei speakermap[MAX_OUTPUT_CHANNELS])
{
ALsizei i;
@@ -610,7 +610,7 @@ static void InitPanning(ALCdevice *device)
}
}
-static void InitCustomPanning(ALCdevice *device, const AmbDecConf *conf, const ALuint speakermap[MAX_OUTPUT_CHANNELS])
+static void InitCustomPanning(ALCdevice *device, const AmbDecConf *conf, const ALsizei speakermap[MAX_OUTPUT_CHANNELS])
{
ChannelMap chanmap[MAX_OUTPUT_CHANNELS];
const ALfloat *coeff_scale = UnitScale;
@@ -690,7 +690,7 @@ static void InitCustomPanning(ALCdevice *device, const AmbDecConf *conf, const A
device->FOAOut.CoeffCount = 4;
}
-static void InitHQPanning(ALCdevice *device, const AmbDecConf *conf, const ALuint speakermap[MAX_OUTPUT_CHANNELS])
+static void InitHQPanning(ALCdevice *device, const AmbDecConf *conf, const ALsizei speakermap[MAX_OUTPUT_CHANNELS])
{
const char *devname;
int decflags = 0;
@@ -879,7 +879,7 @@ void aluInitRenderer(ALCdevice *device, ALint hrtf_id, enum HrtfRequestMode hrtf
if(device->FmtChans != DevFmtStereo)
{
- ALuint speakermap[MAX_OUTPUT_CHANNELS];
+ ALsizei speakermap[MAX_OUTPUT_CHANNELS];
const char *devname, *layout = NULL;
AmbDecConf conf, *pconf = NULL;