Update a couple comments

This commit is contained in:
Chris Robinson
2015-07-04 10:12:57 -07:00
parent d90dfc8d1f
commit 4efe0d8696
3 changed files with 6 additions and 8 deletions
+1 -4
View File
@@ -2083,10 +2083,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
aluInitPanning(device);
/* With HRTF enabled, virtual channels are allocated for B-Format and
* effects renfering. Two extra channels are allocated for the actual HRTF-
* filtered output.
*/
/* With HRTF, allocate two extra channels for the post-filter output. */
size = sizeof(device->DryBuffer[0]) * (device->NumChannels + (device->Hrtf ? 2 : 0));
device->DryBuffer = al_calloc(16, size);
if(!device->DryBuffer)
+4 -3
View File
@@ -105,9 +105,10 @@ extern inline void aluMatrixSet(aluMatrix *restrict matrix, ALfloat m00, ALfloat
* output. Things like effects and B-Format decoding will want to write to the
* virtual channels so that they can be mixed with HRTF in full 3D.
*
* Sources that get mixed using HRTF directly will need to offset the output
* buffer so that they skip the virtual output and write to the actual output
* channels. This is the reason you'll see
* Sources that get mixed using HRTF directly (or that want to skip HRTF
* completely) will need to offset the output buffer so that they skip the
* virtual output and write to the actual output channels. This is the reason
* you'll see
*
* voice->Direct.OutBuffer += voice->Direct.OutChannels;
* voice->Direct.OutChannels = 2;
+1 -1
View File
@@ -732,7 +732,7 @@ struct ALCdevice_struct
alignas(16) ALfloat ResampledData[BUFFERSIZE];
alignas(16) ALfloat FilteredData[BUFFERSIZE];
// Dry path buffer mix
/* Dry path buffer mix. */
alignas(16) ALfloat (*DryBuffer)[BUFFERSIZE];
/* Running count of the mixer invocations, in 31.1 fixed point. This