| Index: media/base/android/webaudio_media_codec_bridge.h
|
| diff --git a/media/base/android/webaudio_media_codec_bridge.h b/media/base/android/webaudio_media_codec_bridge.h
|
| index cd87669d16a4e2dd136b169e6a2b9b6b1e5b4a9f..76de6677e2fa7ca318c35ff4c7bfa82530fd67a5 100644
|
| --- a/media/base/android/webaudio_media_codec_bridge.h
|
| +++ b/media/base/android/webaudio_media_codec_bridge.h
|
| @@ -23,7 +23,8 @@ class MEDIA_EXPORT WebAudioMediaCodecBridge {
|
| // information and decoded PCM samples are written to |pcm_output|.
|
| // We also take ownership of |pcm_output|.
|
| WebAudioMediaCodecBridge(base::SharedMemoryHandle encoded_audio_handle,
|
| - base::FileDescriptor pcm_output);
|
| + base::FileDescriptor pcm_output,
|
| + size_t data_size);
|
| ~WebAudioMediaCodecBridge();
|
|
|
| // Inform JNI about this bridge. Returns true if registration
|
| @@ -34,7 +35,8 @@ class MEDIA_EXPORT WebAudioMediaCodecBridge {
|
| // |encoded_audio_handle|. The PCM samples are sent to |pcm_output|.
|
| static void RunWebAudioMediaCodec(
|
| base::SharedMemoryHandle encoded_audio_handle,
|
| - base::FileDescriptor pcm_output);
|
| + base::FileDescriptor pcm_output,
|
| + size_t data_size);
|
|
|
| void OnChunkDecoded(JNIEnv* env,
|
| jobject /*java object*/,
|
| @@ -45,8 +47,7 @@ class MEDIA_EXPORT WebAudioMediaCodecBridge {
|
| jobject /*java object*/,
|
| jint channel_count,
|
| jint sample_rate,
|
| - jlong duration_us,
|
| - jboolean is_vorbis);
|
| + jlong duration_us);
|
|
|
| private:
|
| // Handles MediaCodec processing of the encoded data in
|
| @@ -62,6 +63,9 @@ class MEDIA_EXPORT WebAudioMediaCodecBridge {
|
| // this file descriptor. We take ownership of this descriptor.
|
| int pcm_output_;
|
|
|
| + // The length of the encoded data.
|
| + size_t data_size_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(WebAudioMediaCodecBridge);
|
| };
|
|
|
|
|