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

Commit e8bf2403 authored by Tao Wu's avatar Tao Wu Committed by android-build-merger
Browse files

Merge "AudioFlinger: Initialize frames to zero." am: af5e66cb

am: ddb2d1dc

Change-Id: Ie82f676631d502e5d15800228cf5aeab7ad4847c
parents 1e3c1726 ddb2d1dc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1570,7 +1570,7 @@ size_t AudioFlinger::getInputBufferSize(uint32_t sampleRate, audio_format_t form
    proposed.format = format;

    sp<DeviceHalInterface> dev = mPrimaryHardwareDev->hwDevice();
    size_t frames;
    size_t frames = 0;
    for (;;) {
        // Note: config is currently a const parameter for get_input_buffer_size()
        // but we use a copy from proposed in case config changes from the call.