Skip to content
Snippets Groups Projects
Commit 48dbd2ac authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Use audio_session_t consistently

Bug: 27562099
Change-Id: I10780c8bfc84af568795a2c15557020fbe89a1c4
parent 1222c10f
No related branches found
No related tags found
No related merge requests found
......@@ -40,8 +40,10 @@ void *BtifAvrcpAudioTrackCreate(int trackFreq, int channelType)
__func__, trackFreq, channelType);
sp<android::AudioTrack> track =
new android::AudioTrack(AUDIO_STREAM_MUSIC, trackFreq, AUDIO_FORMAT_PCM_16_BIT,
channelType, (int)0, (audio_output_flags_t)AUDIO_OUTPUT_FLAG_FAST,
NULL, NULL, 0, 0, android::AudioTrack::TRANSFER_SYNC);
channelType, (size_t) 0 /*frameCount*/,
(audio_output_flags_t)AUDIO_OUTPUT_FLAG_FAST,
NULL /*callback_t*/, NULL /*void* user*/, 0 /*notificationFrames*/,
AUDIO_SESSION_ALLOCATE, android::AudioTrack::TRANSFER_SYNC);
assert(track != NULL);
BtifAvrcpAudioTrack *trackHolder = new BtifAvrcpAudioTrack;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment