From 270936b5a6e9c5e3af43b140c84fbea4e2d8d19a Mon Sep 17 00:00:00 2001 From: xiaomings Date: Thu, 8 Feb 2024 17:34:45 -0800 Subject: [PATCH] Revert "Cherry pick PR #2173: [android] Log the effective size of the AudioTrack buffer" (#2409) Reverts youtube/cobalt#2313 b/315159208 --- .../app/src/main/java/dev/cobalt/media/AudioTrackBridge.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/starboard/android/apk/app/src/main/java/dev/cobalt/media/AudioTrackBridge.java b/starboard/android/apk/app/src/main/java/dev/cobalt/media/AudioTrackBridge.java index f110bcd9119dd..d5548648c7526 100644 --- a/starboard/android/apk/app/src/main/java/dev/cobalt/media/AudioTrackBridge.java +++ b/starboard/android/apk/app/src/main/java/dev/cobalt/media/AudioTrackBridge.java @@ -165,9 +165,6 @@ public AudioTrackBridge( } audioTrackBufferSize /= 2; } - if (isAudioTrackValid()) { - audioTrackBufferSize = audioTrack.getBufferSizeInFrames() * channelCount * getBytesPerSample(sampleType); - } Log.i( TAG, "AudioTrack created with buffer size %d (preferred: %d). The minimum buffer size is"