diff options
-rw-r--r-- | src/jni/rtp/AudioGroup.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jni/rtp/AudioGroup.cpp b/src/jni/rtp/AudioGroup.cpp index 8bb543c..51b723d 100644 --- a/src/jni/rtp/AudioGroup.cpp +++ b/src/jni/rtp/AudioGroup.cpp @@ -819,6 +819,10 @@ bool AudioGroup::DeviceThread::threadLoop() // Initialize AudioTrack and AudioRecord. sp<AudioTrack> track = new AudioTrack(); sp<AudioRecord> record = new AudioRecord(mGroup->mOpPackageName); + // Set caller name so it can be logged in destructor. + // MediaMetricsConstants.h: AMEDIAMETRICS_PROP_CALLERNAME_VALUE_RTP + track->setCallerName("rtp"); + record->setCallerName("rtp"); if (track->set(AUDIO_STREAM_VOICE_CALL, sampleRate, AUDIO_FORMAT_PCM_16_BIT, AUDIO_CHANNEL_OUT_MONO, output, AUDIO_OUTPUT_FLAG_NONE, NULL /*callback_t*/, NULL /*user*/, 0 /*notificationFrames*/, 0 /*sharedBuffer*/, |