@ -78,7 +78,7 @@ public:
{
float32_t gL, gR;
pan = constrain(p, 0.0f, 1.0f);
mix_pwr(pan, &panR, &panL);
mix_pwr(pan, &panL, &panR);
gL = panL * gain;
gR = panR * gain;
@ -130,8 +130,8 @@ public:
xRegR = _xRegR;
yRegR = _yRegR;
AudioStream_F32::transmit(blockL, 0); // send blockL on both output channels
AudioStream_F32::transmit(blockL, 1);
AudioStream_F32::transmit(blockL, 0);
AudioStream_F32::transmit(blockR, 1);
AudioStream_F32::release(blockL);
AudioStream_F32::release(blockR);
@ -50,14 +50,10 @@ public:
blockL = AudioStream_F32::receiveWritable_f32(0);
blockR = AudioStream_F32::receiveWritable_f32(1);
if (!blockL || !blockR)
if (blockL) AudioStream_F32::release(blockL);
if (blockR) AudioStream_F32::release(blockR);
return;
}
switch(mode)