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

Commit 14b2fd4e authored by Vidyakumar Athota's avatar Vidyakumar Athota Committed by Gerrit - the friendly Code Review server
Browse files

frameworks/av: Fix no audio issue during MT call ring tone

No audio is observed during MT call ring tone playback. This is due to
update of mStreamType flag to AUDIO_STREAM_DEFAULT when attributes are used.
Use streamType flag which is derived from attributes instead of mSteamType
while creating track to avoid createTrack failures.

Change-Id: I7ddc79e45b81fd380abad209e26150110a6a806f
parent 5aa24d2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -365,7 +365,7 @@ status_t AudioTrack::set(
        memcpy(&mAttributes, pAttributes, sizeof(audio_attributes_t));
        ALOGV("Building AudioTrack with attributes: usage=%d content=%d flags=0x%x tags=[%s]",
                mAttributes.usage, mAttributes.content_type, mAttributes.flags, mAttributes.tags);
        mStreamType = AUDIO_STREAM_DEFAULT;
        mStreamType = audio_attributes_to_stream_type(&mAttributes);
    }

    // these below should probably come from the audioFlinger too...