Use audio_session_t consistently
Bug: 27562099
Change-Id: I10780c8bfc84af568795a2c15557020fbe89a1c4
diff --git a/btif/src/btif_avrcp_audio_track.cpp b/btif/src/btif_avrcp_audio_track.cpp
index 6716826..89d2a5f 100644
--- a/btif/src/btif_avrcp_audio_track.cpp
+++ b/btif/src/btif_avrcp_audio_track.cpp
@@ -42,8 +42,10 @@
__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;