diff options
author | Chris Robinson <[email protected]> | 2016-03-16 06:49:35 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-03-16 06:49:35 -0700 |
commit | 55ff0c143e67ceccd46f3d2ca24e9f6fd4d4884c (patch) | |
tree | 9855deb7fa0dc080c908d8605bebea663c50e32b /Alc/panning.c | |
parent | a3863d5834d5d21edf2e2aa9c42a3bdb44c25b51 (diff) |
Rename the BFormat channels to Aux
Diffstat (limited to 'Alc/panning.c')
-rw-r--r-- | Alc/panning.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/Alc/panning.c b/Alc/panning.c index d9a1da9d..16c84b6d 100644 --- a/Alc/panning.c +++ b/Alc/panning.c @@ -216,10 +216,10 @@ DECL_CONST static inline const char *GetLabelFromChannel(enum Channel channel) case LowerBackLeft: return "lower-back-left"; case LowerBackRight: return "lower-back-right"; - case BFormatW: return "bformat-w"; - case BFormatX: return "bformat-x"; - case BFormatY: return "bformat-y"; - case BFormatZ: return "bformat-z"; + case Aux0: return "aux-0"; + case Aux1: return "aux-1"; + case Aux2: return "aux-2"; + case Aux3: return "aux-3"; case InvalidChannel: break; } @@ -517,14 +517,14 @@ ALvoid aluInitPanning(ALCdevice *device) { LowerBackLeft, { 0.176776695f, -0.072168784f, 0.072168784f, -0.072168784f } }, { LowerBackRight, { 0.176776695f, -0.072168784f, -0.072168784f, -0.072168784f } }, }, BFormat2D[3] = { - { BFormatW, { 1.0f, 0.0f, 0.0f, 0.0f } }, - { BFormatX, { 0.0f, 1.0f, 0.0f, 0.0f } }, - { BFormatY, { 0.0f, 0.0f, 1.0f, 0.0f } }, + { Aux0, { 1.0f, 0.0f, 0.0f, 0.0f } }, + { Aux1, { 0.0f, 1.0f, 0.0f, 0.0f } }, + { Aux2, { 0.0f, 0.0f, 1.0f, 0.0f } }, }, BFormat3D[4] = { - { BFormatW, { 1.0f, 0.0f, 0.0f, 0.0f } }, - { BFormatX, { 0.0f, 1.0f, 0.0f, 0.0f } }, - { BFormatY, { 0.0f, 0.0f, 1.0f, 0.0f } }, - { BFormatZ, { 0.0f, 0.0f, 0.0f, 1.0f } }, + { Aux0, { 1.0f, 0.0f, 0.0f, 0.0f } }, + { Aux1, { 0.0f, 1.0f, 0.0f, 0.0f } }, + { Aux2, { 0.0f, 0.0f, 1.0f, 0.0f } }, + { Aux3, { 0.0f, 0.0f, 0.0f, 1.0f } }, }; const ChannelMap *chanmap = NULL; ALfloat ambiscale = 1.0f; @@ -592,10 +592,10 @@ ALvoid aluInitPanning(ALCdevice *device) { /* NOTE: This is ACN/N3D ordering and scaling, rather than FuMa. */ static const ChannelMap Ambi3D[4] = { - { BFormatW, { 1.0f, 0.0f, 0.0f, 0.0f } }, - { BFormatY, { 0.0f, 1.0f, 0.0f, 0.0f } }, - { BFormatZ, { 0.0f, 0.0f, 1.0f, 0.0f } }, - { BFormatX, { 0.0f, 0.0f, 0.0f, 1.0f } }, + { Aux0, { 1.0f, 0.0f, 0.0f, 0.0f } }, + { Aux1, { 0.0f, 1.0f, 0.0f, 0.0f } }, + { Aux2, { 0.0f, 0.0f, 1.0f, 0.0f } }, + { Aux3, { 0.0f, 0.0f, 0.0f, 1.0f } }, }; ALuint speakermap[MAX_OUTPUT_CHANNELS]; const char *fname = ""; @@ -719,13 +719,13 @@ ALvoid aluInitPanning(ALCdevice *device) void aluInitEffectPanning(ALeffectslot *slot) { static const ChannelMap FirstOrderN3D[4] = { - { BFormatW, { 1.0f, 0.0f, 0.0f, 0.0f } }, - { BFormatY, { 0.0f, 1.0f, 0.0f, 0.0f } }, - { BFormatZ, { 0.0f, 0.0f, 1.0f, 0.0f } }, - { BFormatX, { 0.0f, 0.0f, 0.0f, 1.0f } }, + { Aux0, { 1.0f, 0.0f, 0.0f, 0.0f } }, + { Aux1, { 0.0f, 1.0f, 0.0f, 0.0f } }, + { Aux2, { 0.0f, 0.0f, 1.0f, 0.0f } }, + { Aux3, { 0.0f, 0.0f, 0.0f, 1.0f } }, }; static const enum Channel AmbiChannels[MAX_OUTPUT_CHANNELS] = { - BFormatW, BFormatY, BFormatZ, BFormatX, InvalidChannel + Aux0, Aux1, Aux2, Aux3, InvalidChannel }; memset(slot->AmbiCoeffs, 0, sizeof(slot->AmbiCoeffs)); |