aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/panning.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-06-01 05:30:06 -0700
committerChris Robinson <[email protected]>2016-06-01 05:30:06 -0700
commitc63d468d4cc738ead65ff7ebc9cf6afcad400ee1 (patch)
treec3e214e33de7470a85c1dc994e094afdcf0013b2 /Alc/panning.c
parent5e64882be9ad3e3a1552e41befef5a6216f4ecfe (diff)
Use a macro to specify the ambisonic periphonic channel mask
Diffstat (limited to 'Alc/panning.c')
-rw-r--r--Alc/panning.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/panning.c b/Alc/panning.c
index 2116e739..6949c565 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -673,7 +673,7 @@ static void InitHQPanning(ALCdevice *device, const AmbDecConf *conf, const ALuin
if(GetConfigValueBool(devname, "decoder", "distance-comp", 1))
decflags |= BFDF_DistanceComp;
- if((conf->ChanMask & ~0x831b))
+ if((conf->ChanMask&AMBI_PERIPHONIC_MASK))
{
count = (conf->ChanMask > 0x1ff) ? 16 :
(conf->ChanMask > 0xf) ? 9 : 4;
@@ -701,7 +701,7 @@ static void InitHQPanning(ALCdevice *device, const AmbDecConf *conf, const ALuin
TRACE("Enabling %s-band %s-order%s ambisonic decoder\n",
(conf->FreqBands == 1) ? "single" : "dual",
(conf->ChanMask > 0xf) ? (conf->ChanMask > 0x1ff) ? "third" : "second" : "first",
- (conf->ChanMask & ~0x831b) ? " periphonic" : ""
+ (conf->ChanMask&AMBI_PERIPHONIC_MASK) ? " periphonic" : ""
);
bformatdec_reset(device->AmbiDecoder, conf, count, device->Frequency,
speakermap, decflags);