Cog Audio: Fix generic downmix to stereo
Code ordering was wrong, it was writing the output samples repeatedly for each input speaker, now it will only write them once. Signed-off-by: Christopher Snowhill <kode54@gmail.com>CQTexperiment
parent
acb1dd75d3
commit
08da31f96c
|
@ -135,10 +135,9 @@ static void downmix_to_stereo(const float *inBuffer, int channels, uint32_t conf
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
outBuffer[i * 2 + 0] = left;
|
|
||||||
outBuffer[i * 2 + 1] = right;
|
|
||||||
}
|
}
|
||||||
|
outBuffer[i * 2 + 0] = left;
|
||||||
|
outBuffer[i * 2 + 1] = right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue