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

Commit 0db4da6d 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: I0f18b33e841387330aaae978e539df5f03878a78
parents a84a8637 397db576
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -54,6 +54,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