Code gardening
This commit is contained in:
parent
99b61089c8
commit
7711de62fb
1 changed files with 40 additions and 45 deletions
|
|
@ -2660,7 +2660,7 @@ static void MixAudioFrames(float *framesOut, const float *framesIn, ma_uint32 fr
|
|||
const float localVolume = buffer->volume;
|
||||
const ma_uint32 channels = AUDIO.System.device.playback.channels;
|
||||
|
||||
if (channels == 2) // Consider panning
|
||||
if (channels == 2) // Consider panning
|
||||
{
|
||||
const float right = (buffer->pan + 1.0f)/2.0f; // Normalize: [-1..1] -> [0..1]
|
||||
const float left = 1.0f - right;
|
||||
|
|
|
|||
Loading…
Reference in a new issue