Index: media/base/android/media_codec_bridge.h |
diff --git a/media/base/android/media_codec_bridge.h b/media/base/android/media_codec_bridge.h |
index c09ea52a7c2e685c1b7b4636995e9b78e3e22da4..6091548a6c4606678ebd7231816b92d75198cd26 100644 |
--- a/media/base/android/media_codec_bridge.h |
+++ b/media/base/android/media_codec_bridge.h |
@@ -107,6 +107,10 @@ class MEDIA_EXPORT MediaCodecBridge { |
// returns a format change by returning INFO_OUTPUT_FORMAT_CHANGED |
void GetOutputFormat(int* width, int* height); |
+ // Used for checking for new sampling rate after DequeueInputBuffer() returns |
+ // INFO_OUTPUT_FORMAT_CHANGED |
+ void GetOutputSamplingRate(int* sampling_rate); |
+ |
// Submits a byte array to the given input buffer. Call this after getting an |
// available buffer from DequeueInputBuffer(). If |data| is NULL, assume the |
// input buffer has already been populated (but still obey |size|). |
@@ -182,6 +186,8 @@ class MEDIA_EXPORT MediaCodecBridge { |
static bool RegisterMediaCodecBridge(JNIEnv* env); |
+ bool reconfigureAudioTrack(); |
+ |
protected: |
// Returns true if |mime_type| is known to be unaccelerated (i.e. backed by a |
// software codec instead of a hardware one). |