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

Commit 40d58687 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 11617975 from 7f502053 to 24Q3-release

Change-Id: Id5fb04de782c7d1e710f3209947c77c988bdc473
parents 9b9206ec 7f502053
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -213,7 +213,7 @@ class Module : public BnModule {
                                                                                 sampleRateHz);
        // Round up to nearest 16 frames since in the framework this is the size of a mixer burst.
        const int32_t multipleOf16 = (rawSizeFrames + 15) & ~15;
        if (multipleOf16 <= 512) return multipleOf16;
        if (sampleRateHz < 44100 || multipleOf16 <= 512) return multipleOf16;
        // Larger buffers should use powers of 2.
        int32_t powerOf2 = 1;
        while (powerOf2 < multipleOf16) powerOf2 <<= 1;