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

Commit cf7197e3 authored by Phil Burk's avatar Phil Burk Committed by Gerrit Code Review
Browse files

Merge "aaudio: Update language to comply with Android's inclusive language guidance"

parents 8fd831a5 18142aed
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
/**
/**
 * Dummy file needed to get Android Studio to scan this folder.
 * Unused file required to get Android Studio to scan this folder.
 */
 */


int g_DoNotUseThisVariable = 0;
int g_DoNotUseThisVariable = 0;
+1 −1
Original line number Original line Diff line number Diff line
@@ -26,7 +26,7 @@


namespace aaudio {
namespace aaudio {


// Arbitrary limits for sanity checks. TODO remove after debugging.
// Arbitrary limits for range checks.
#define MAX_SHARED_MEMORIES (32)
#define MAX_SHARED_MEMORIES (32)
#define MAX_MMAP_OFFSET_BYTES (32 * 1024 * 8)
#define MAX_MMAP_OFFSET_BYTES (32 * 1024 * 8)
#define MAX_MMAP_SIZE_BYTES (32 * 1024 * 8)
#define MAX_MMAP_SIZE_BYTES (32 * 1024 * 8)
+1 −1
Original line number Original line Diff line number Diff line
@@ -267,7 +267,7 @@ public:
    AudioFloatInputPort input;
    AudioFloatInputPort input;


    /**
    /**
     * Dummy processor. The work happens in the read() method.
     * Do nothing. The work happens in the read() method.
     *
     *
     * @param framePosition index of first frame to be processed
     * @param framePosition index of first frame to be processed
     * @param numFrames
     * @param numFrames
+1 −1
Original line number Original line Diff line number Diff line
@@ -105,7 +105,7 @@ int32_t AAudioServiceStreamShared::calculateBufferCapacity(int32_t requestedCapa
    }
    }
    int32_t capacityInFrames = numBursts * framesPerBurst;
    int32_t capacityInFrames = numBursts * framesPerBurst;


    // Final sanity check.
    // Final range check.
    if (capacityInFrames > MAX_FRAMES_PER_BUFFER) {
    if (capacityInFrames > MAX_FRAMES_PER_BUFFER) {
        ALOGE("calculateBufferCapacity() calc capacity %d > max %d",
        ALOGE("calculateBufferCapacity() calc capacity %d > max %d",
              capacityInFrames, MAX_FRAMES_PER_BUFFER);
              capacityInFrames, MAX_FRAMES_PER_BUFFER);