diff options
author | Chris Robinson <[email protected]> | 2014-11-04 03:00:15 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-11-04 03:00:15 -0800 |
commit | d8cfdb3f348b3e4dd545a5ebd7f282aa2b4ee585 (patch) | |
tree | 56bf40bd62f6587f7352d4b8cca1e1c726a3b67b /Alc | |
parent | deba9967693e1af2c6e1fcc4088be1d40be9c58f (diff) |
Use COUNTOF to set the number of speakers
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/panning.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Alc/panning.c b/Alc/panning.c index 2269a251..2e979049 100644 --- a/Alc/panning.c +++ b/Alc/panning.c @@ -146,37 +146,37 @@ ALvoid aluInitPanning(ALCdevice *device) switch(device->FmtChans) { case DevFmtMono: - device->NumSpeakers = 1; + device->NumSpeakers = COUNTOF(MonoCfg); config = MonoCfg; break; case DevFmtStereo: - device->NumSpeakers = 2; + device->NumSpeakers = COUNTOF(StereoCfg); config = StereoCfg; break; case DevFmtQuad: - device->NumSpeakers = 4; + device->NumSpeakers = COUNTOF(QuadCfg); config = QuadCfg; break; case DevFmtX51: - device->NumSpeakers = 5; + device->NumSpeakers = COUNTOF(X51Cfg); config = X51Cfg; break; case DevFmtX51Side: - device->NumSpeakers = 5; + device->NumSpeakers = COUNTOF(X51SideCfg); config = X51SideCfg; break; case DevFmtX61: - device->NumSpeakers = 6; + device->NumSpeakers = COUNTOF(X61Cfg); config = X61Cfg; break; case DevFmtX71: - device->NumSpeakers = 7; + device->NumSpeakers = COUNTOF(X71Cfg); config = X71Cfg; break; } |