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 | |
parent | a3863d5834d5d21edf2e2aa9c42a3bdb44c25b51 (diff) |
Rename the BFormat channels to Aux
-rw-r--r-- | Alc/ALc.c | 8 | ||||
-rw-r--r-- | Alc/panning.c | 40 | ||||
-rw-r--r-- | OpenAL32/Include/alMain.h | 8 |
3 files changed, 28 insertions, 28 deletions
@@ -1488,10 +1488,10 @@ void SetDefaultWFXChannelOrder(ALCdevice *device) device->RealOut.ChannelName[7] = SideRight; break; case DevFmtBFormat3D: - device->RealOut.ChannelName[0] = BFormatW; - device->RealOut.ChannelName[1] = BFormatX; - device->RealOut.ChannelName[2] = BFormatY; - device->RealOut.ChannelName[3] = BFormatZ; + device->RealOut.ChannelName[0] = Aux0; + device->RealOut.ChannelName[1] = Aux1; + device->RealOut.ChannelName[2] = Aux2; + device->RealOut.ChannelName[3] = Aux3; break; } } 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)); diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 3ce95801..c71e844f 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -326,10 +326,10 @@ enum Channel { LowerBackLeft, LowerBackRight, - BFormatW, - BFormatX, - BFormatY, - BFormatZ, + Aux0, + Aux1, + Aux2, + Aux3, InvalidChannel }; |