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

Commit 2120fe5b authored by Glenn Kasten's avatar Glenn Kasten
Browse files

ToneGenerator requests fast track

Also add comments to AudioTrack::set() parameter list

Change-Id: I28c76e9d813778d86b15d75cf7f01a17c258b6d9
parent fbe308d4
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -1020,15 +1020,15 @@ bool ToneGenerator::initAudioTrack() {
    ALOGV("Create Track: %p", mpAudioTrack);

    mpAudioTrack->set(mStreamType,
                      0,
                      0,    // sampleRate
                      AUDIO_FORMAT_PCM_16_BIT,
                      AUDIO_CHANNEL_OUT_MONO,
                      0,
                      AUDIO_POLICY_OUTPUT_FLAG_NONE,
                      0,    // frameCount
                      AUDIO_POLICY_OUTPUT_FLAG_FAST,
                      audioCallback,
                      this,
                      0,
                      0,
                      this, // user
                      0,    // notificationFrames
                      0,    // sharedBuffer
                      mThreadCanCallJava);

    if (mpAudioTrack->initCheck() != NO_ERROR) {