OSDN Git Service

Add log at entry to set() in AudioTrack and AudioRecord
authorGlenn Kasten <gkasten@google.com>
Mon, 24 Feb 2014 23:13:05 +0000 (15:13 -0800)
committerGlenn Kasten <gkasten@google.com>
Tue, 25 Feb 2014 01:21:29 +0000 (17:21 -0800)
Change-Id: Ife23b88474c1d62c0cf682c1a310d951f2c0f54a

media/libmedia/AudioRecord.cpp
media/libmedia/AudioTrack.cpp

index 700718d..b6b6d14 100644 (file)
@@ -133,6 +133,11 @@ status_t AudioRecord::set(
         transfer_type transferType,
         audio_input_flags_t flags)
 {
+    ALOGV("set(): inputSource %d, sampleRate %u, format %#x, channelMask %#x, frameCount %d, "
+          "notificationFrames %d, sessionId %d, transferType %d, flags %#x",
+          inputSource, sampleRate, format, channelMask, frameCountInt, notificationFrames,
+          sessionId, transferType, flags);
+
     switch (transferType) {
     case TRANSFER_DEFAULT:
         if (cbf == NULL || threadCanCallJava) {
@@ -163,9 +168,6 @@ status_t AudioRecord::set(
     }
     size_t frameCount = frameCountInt;
 
-    ALOGV("set(): sampleRate %u, channelMask %#x, frameCount %u", sampleRate, channelMask,
-            frameCount);
-
     AutoMutex lock(mLock);
 
     if (mAudioRecord != 0) {
index 5c62260..46025c0 100644 (file)
@@ -195,6 +195,11 @@ status_t AudioTrack::set(
         int uid,
         pid_t pid)
 {
+    ALOGV("set(): streamType %d, sampleRate %u, format %#x, channelMask %#x, frameCount %d, "
+          "flags #%x, notificationFrames %d, sessionId %d, transferType %d",
+          streamType, sampleRate, format, channelMask, frameCountInt, flags, notificationFrames,
+          sessionId, transferType);
+
     switch (transferType) {
     case TRANSFER_DEFAULT:
         if (sharedBuffer != 0) {