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

Commit f61ea2ad authored by Phil Burk's avatar Phil Burk Committed by Android (Google) Code Review
Browse files

Merge "AAudio loopback example, remove gain" into main

parents 3db4ea63 2ce71d38
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -323,7 +323,6 @@ static void usage() {
    printf("      -C{channels}      number of input channels\n");
    printf("      -C{channels}      number of input channels\n");
    printf("      -D{deviceId}      input device ID\n");
    printf("      -D{deviceId}      input device ID\n");
    printf("      -F{0,1,2}         input format, 1=I16, 2=FLOAT\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("      -h{hangMillis}    occasionally hang in the callback\n");
    printf("      -P{inPerf}        set input AAUDIO_PERFORMANCE_MODE*\n");
    printf("      -P{inPerf}        set input AAUDIO_PERFORMANCE_MODE*\n");
    printf("          n for _NONE\n");
    printf("          n for _NONE\n");
@@ -436,7 +435,6 @@ int main(int argc, const char **argv)
    int                   written                    = 0;
    int                   written                    = 0;


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


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