combined channels - release

This commit is contained in:
Philippe G
2021-02-20 17:34:25 -08:00
parent 9717f8288e
commit 3f0882ead6
3 changed files with 41 additions and 5 deletions

View File

@@ -254,8 +254,8 @@ frames_t _output_frames(frames_t avail) {
out_frames = !silence ? min(size, cont_frames) : size;
if (output.channels & 0x01) gainR = COPY_MONO;
else if (output.channels & 0x02) gainL = COPY_MONO;
if (output.channels & 0x01) gainR |= MONO_FLAG;
if (output.channels & 0x02) gainL |= MONO_FLAG;
wrote = output.write_cb(out_frames, silence, gainL, gainR, cross_gain_in, cross_gain_out, &cross_ptr);