mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 16:54:03 +02:00
Revert "verblib: Try fixing an issue in stereo mode."
This reverts commit 0788be818b.
This change was technically incorrect. Reverting this change for now
until a better fix is in place. Likely this will require an extra
parameter for controlling this.
This commit is contained in:
@@ -462,19 +462,19 @@ int verblib_initialize ( verblib* verb, unsigned long sample_rate, unsigned int
|
|||||||
void verblib_process ( verblib* verb, const float* input_buffer, float* output_buffer, unsigned long frames )
|
void verblib_process ( verblib* verb, const float* input_buffer, float* output_buffer, unsigned long frames )
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
float outL, outR, inputL, inputR;
|
float outL, outR, input;
|
||||||
|
|
||||||
if ( verb->channels == 1 )
|
if ( verb->channels == 1 )
|
||||||
{
|
{
|
||||||
while ( frames-- > 0 )
|
while ( frames-- > 0 )
|
||||||
{
|
{
|
||||||
outL = 0.0f;
|
outL = 0.0f;
|
||||||
inputL = ( input_buffer[0] * 2.0f ) * verb->gain;
|
input = ( input_buffer[0] * 2.0f ) * verb->gain;
|
||||||
|
|
||||||
/* Accumulate comb filters in parallel. */
|
/* Accumulate comb filters in parallel. */
|
||||||
for ( i = 0; i < verblib_numcombs; i++ )
|
for ( i = 0; i < verblib_numcombs; i++ )
|
||||||
{
|
{
|
||||||
outL += verblib_comb_process ( &verb->combL[i], inputL );
|
outL += verblib_comb_process ( &verb->combL[i], input );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Feed through allpasses in series. */
|
/* Feed through allpasses in series. */
|
||||||
@@ -496,14 +496,13 @@ void verblib_process ( verblib* verb, const float* input_buffer, float* output_b
|
|||||||
while ( frames-- > 0 )
|
while ( frames-- > 0 )
|
||||||
{
|
{
|
||||||
outL = outR = 0.0f;
|
outL = outR = 0.0f;
|
||||||
inputL = ( input_buffer[0] * 2 ) * verb->gain;
|
input = ( input_buffer[0] + input_buffer[1] ) * verb->gain;
|
||||||
inputR = ( input_buffer[1] * 2 ) * verb->gain;
|
|
||||||
|
|
||||||
/* Accumulate comb filters in parallel. */
|
/* Accumulate comb filters in parallel. */
|
||||||
for ( i = 0; i < verblib_numcombs; i++ )
|
for ( i = 0; i < verblib_numcombs; i++ )
|
||||||
{
|
{
|
||||||
outL += verblib_comb_process ( &verb->combL[i], inputL );
|
outL += verblib_comb_process ( &verb->combL[i], input );
|
||||||
outR += verblib_comb_process ( &verb->combR[i], inputR );
|
outR += verblib_comb_process ( &verb->combR[i], input );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Feed through allpasses in series. */
|
/* Feed through allpasses in series. */
|
||||||
|
|||||||
Reference in New Issue
Block a user