channel bug fixes

main
pio 3 months ago
parent 71328bbf05
commit a6ff04830d
  1. 2
      src/effect_gainStereo_F32.h
  2. 4
      src/filter_DCblockerStereo_F32.h
  3. 4
      src/switch_selectorStereo_F32.h

@ -78,7 +78,7 @@ public:
{ {
float32_t gL, gR; float32_t gL, gR;
pan = constrain(p, 0.0f, 1.0f); pan = constrain(p, 0.0f, 1.0f);
mix_pwr(pan, &panR, &panL); mix_pwr(pan, &panL, &panR);
gL = panL * gain; gL = panL * gain;
gR = panR * gain; gR = panR * gain;

@ -130,8 +130,8 @@ public:
xRegR = _xRegR; xRegR = _xRegR;
yRegR = _yRegR; yRegR = _yRegR;
AudioStream_F32::transmit(blockL, 0); // send blockL on both output channels AudioStream_F32::transmit(blockL, 0);
AudioStream_F32::transmit(blockL, 1); AudioStream_F32::transmit(blockR, 1);
AudioStream_F32::release(blockL); AudioStream_F32::release(blockL);
AudioStream_F32::release(blockR); AudioStream_F32::release(blockR);

@ -50,14 +50,10 @@ public:
blockL = AudioStream_F32::receiveWritable_f32(0); blockL = AudioStream_F32::receiveWritable_f32(0);
blockR = AudioStream_F32::receiveWritable_f32(1); blockR = AudioStream_F32::receiveWritable_f32(1);
if (!blockL || !blockR) if (!blockL || !blockR)
{ {
if (blockL) AudioStream_F32::release(blockL); if (blockL) AudioStream_F32::release(blockL);
if (blockR) AudioStream_F32::release(blockR); if (blockR) AudioStream_F32::release(blockR);
return; return;
} }
switch(mode) switch(mode)

Loading…
Cancel
Save