Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1aee659 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "LE Audio: pass left/right microphone audio in proper order"

parents deda9de1 b4e4f9da
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2316,8 +2316,8 @@ class LeAudioClientImpl : public LeAudioClient {
      std::vector<uint16_t> mixed(left->size() * 2);

      for (size_t i = 0; i < left->size(); i++) {
        mixed[2 * i] = (*left)[i];
        mixed[2 * i + 1] = (*right)[i];
        mixed[2 * i] = (*right)[i];
        mixed[2 * i + 1] = (*left)[i];
      }
      to_write = sizeof(int16_t) * mixed.size();
      written =
@@ -2338,8 +2338,8 @@ class LeAudioClientImpl : public LeAudioClient {
      std::vector<uint16_t> mixed(mono_size * 2);

      for (size_t i = 0; i < mono_size; i++) {
        mixed[2 * i] = left ? (*left)[i] : 0;
        mixed[2 * i + 1] = right ? (*right)[i] : 0;
        mixed[2 * i] = right ? (*right)[i] : 0;
        mixed[2 * i + 1] = left ? (*left)[i] : 0;
      }
      to_write = sizeof(int16_t) * mixed.size();
      written =