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

Commit 2ce71d38 authored by Phil Burk's avatar Phil Burk
Browse files

AAudio loopback example, remove gain

The variable was never used so it was removed.
It was left over from when we used to measure latency
using recirculating feedback.

Bug: 329465959
Test: mmm frameworks/av/ media/libaaudio
Change-Id: I7c4f2fec8ef90676da829cac17cfd4ea7006f26a
parent 6e78df72
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -323,7 +323,6 @@ static void usage() {
    printf("      -C{channels}      number of input channels\n");
    printf("      -D{deviceId}      input device ID\n");
    printf("      -F{0,1,2}         input format, 1=I16, 2=FLOAT\n");
    printf("      -g{gain}          recirculating loopback gain\n");
    printf("      -h{hangMillis}    occasionally hang in the callback\n");
    printf("      -P{inPerf}        set input AAUDIO_PERFORMANCE_MODE*\n");
    printf("          n for _NONE\n");
@@ -436,7 +435,6 @@ int main(int argc, const char **argv)
    int                   written                    = 0;

    int                   testMode                   = TEST_LATENCY;
    double                gain                       = 1.0;
    int                   hangTimeMillis             = 0;
    std::string           report;

@@ -468,9 +466,6 @@ int main(int argc, const char **argv)
                    case 'F':
                        requestedInputFormat = atoi(&arg[2]);
                        break;
                    case 'g':
                        gain = atof(&arg[2]);
                        break;
                    case 'h':
                        // Was there a number after the "-h"?
                        if (arg[2]) {