Emulator Issues #8711 » 0002-Changed-some-things.patch
Source/Core/AudioCommon/OpenALStream.cpp | ||
---|---|---|
// DPL2Decode output: LEFTFRONT, RIGHTFRONT, CENTREFRONT, (sub), LEFTREAR, RIGHTREAR
|
||
for (u32 i = 0; i < nSamples; ++i)
|
||
{
|
||
dpl2[i*SURROUND_CHANNELS + 3 /*sub/lfe*/] = 0.0;
|
||
dpl2[i*SURROUND_CHANNELS + 3 /*sub/lfe*/] = 0.0f;
|
||
}
|
||
if (float32_capable)
|
Source/Core/AudioCommon/OpenALStream.h | ||
---|---|---|
#define SURROUND_CHANNELS 6 // number of channels in surround mode
|
||
#define SIZE_SHORT 2
|
||
#define SIZE_FLOAT 4 // size of a float in bytes
|
||
#define SIZE_INT 4
|
||
#define FRAME_STEREO_SHORT STEREO_CHANNELS * SIZE_SHORT
|
||
#define FRAME_STEREO_FLOAT STEREO_CHANNELS * SIZE_FLOAT
|
||
#define FRAME_SURROUND_FLOAT SURROUND_CHANNELS * SIZE_FLOAT
|