diff options
author | Chris Robinson <[email protected]> | 2016-07-05 14:18:17 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-07-05 14:18:17 -0700 |
commit | d340d50d49287725802eae02771f2776f49f16e9 (patch) | |
tree | 7bc8e1e311caf3aa5620cb6e75740c7725d04a29 /Alc/ALc.c | |
parent | 8f4d6c48ce6621e2e2b79ada781b9e3dfc9ed38c (diff) |
Remove the VirtOut buffer alias
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 24 |
1 files changed, 10 insertions, 14 deletions
@@ -1871,8 +1871,8 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) al_free(device->Dry.Buffer); device->Dry.Buffer = NULL; device->Dry.NumChannels = 0; - device->VirtOut.Buffer = NULL; - device->VirtOut.NumChannels = 0; + device->FOAOut.Buffer = NULL; + device->FOAOut.NumChannels = 0; device->RealOut.Buffer = NULL; device->RealOut.NumChannels = 0; @@ -2012,15 +2012,11 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) if(device->Hrtf || device->Uhj_Encoder || device->AmbiDecoder) { - device->VirtOut.Buffer = device->Dry.Buffer; - device->VirtOut.NumChannels = device->Dry.NumChannels; device->RealOut.Buffer = device->Dry.Buffer + device->Dry.NumChannels; device->RealOut.NumChannels = ChannelsFromDevFmt(device->FmtChans); } else { - device->VirtOut.Buffer = NULL; - device->VirtOut.NumChannels = 0; device->RealOut.Buffer = device->Dry.Buffer; device->RealOut.NumChannels = device->Dry.NumChannels; } @@ -2180,8 +2176,8 @@ static ALCvoid FreeDevice(ALCdevice *device) al_free(device->Dry.Buffer); device->Dry.Buffer = NULL; device->Dry.NumChannels = 0; - device->VirtOut.Buffer = NULL; - device->VirtOut.NumChannels = 0; + device->FOAOut.Buffer = NULL; + device->FOAOut.NumChannels = 0; device->RealOut.Buffer = NULL; device->RealOut.NumChannels = 0; @@ -3365,8 +3361,8 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName) AL_STRING_INIT(device->DeviceName); device->Dry.Buffer = NULL; device->Dry.NumChannels = 0; - device->VirtOut.Buffer = NULL; - device->VirtOut.NumChannels = 0; + device->FOAOut.Buffer = NULL; + device->FOAOut.NumChannels = 0; device->RealOut.Buffer = NULL; device->RealOut.NumChannels = 0; @@ -3629,8 +3625,8 @@ ALC_API ALCdevice* ALC_APIENTRY alcCaptureOpenDevice(const ALCchar *deviceName, AL_STRING_INIT(device->DeviceName); device->Dry.Buffer = NULL; device->Dry.NumChannels = 0; - device->VirtOut.Buffer = NULL; - device->VirtOut.NumChannels = 0; + device->FOAOut.Buffer = NULL; + device->FOAOut.NumChannels = 0; device->RealOut.Buffer = NULL; device->RealOut.NumChannels = 0; @@ -3825,8 +3821,8 @@ ALC_API ALCdevice* ALC_APIENTRY alcLoopbackOpenDeviceSOFT(const ALCchar *deviceN AL_STRING_INIT(device->DeviceName); device->Dry.Buffer = NULL; device->Dry.NumChannels = 0; - device->VirtOut.Buffer = NULL; - device->VirtOut.NumChannels = 0; + device->FOAOut.Buffer = NULL; + device->FOAOut.NumChannels = 0; device->RealOut.Buffer = NULL; device->RealOut.NumChannels = 0; |