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

Commit 3125ad9a authored by Eric Laurent's avatar Eric Laurent Committed by android-build-merger
Browse files

audio hal: clarify requirements on offload buffer fragments

am: 397db576

* commit '397db576':
  audio hal: clarify requirements on offload buffer fragments

Change-Id: Iee22db181e14af5d9463d38bc1b3d931a92a1631
parents 48d8ab84 397db576
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -52,6 +52,8 @@

#include "sound/compress_params.h"

/* COMPRESS_OFFLOAD_FRAGMENT_SIZE must be more than 8KB and a multiple of 32KB if more than 32KB.
 * COMPRESS_OFFLOAD_FRAGMENT_SIZE * COMPRESS_OFFLOAD_NUM_FRAGMENTS must be less than 8MB. */
#define COMPRESS_OFFLOAD_FRAGMENT_SIZE (256 * 1024)
// 2 buffers causes problems with high bitrate files
#define COMPRESS_OFFLOAD_NUM_FRAGMENTS 3