Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(824)

Unified Diff: media/base/android/sdk_media_codec_bridge.h

Issue 1651673002: Add MediaCodecAudioDecoder implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: A better linking issue fix Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/android/sdk_media_codec_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/sdk_media_codec_bridge.h
diff --git a/media/base/android/sdk_media_codec_bridge.h b/media/base/android/sdk_media_codec_bridge.h
index 3ec81476c1ab8566c07650b2aff58b243870042f..b729eab67770f35ae83203d94212b5ac74067f8b 100644
--- a/media/base/android/sdk_media_codec_bridge.h
+++ b/media/base/android/sdk_media_codec_bridge.h
@@ -102,7 +102,16 @@ class MEDIA_EXPORT AudioCodecBridge : public SdkMediaCodecBridge {
// See MediaCodecUtil::IsKnownUnaccelerated().
static bool IsKnownUnaccelerated(const AudioCodec& codec);
- // Start the audio codec bridge.
+ // Start the audio codec bridge. If |play_audio| is true this method creates
+ // Android AudioTrack object for the actual audio playback
+ // (http://developer.android.com/reference/android/media/AudioTrack.html).
+ bool ConfigureAndStart(const AudioDecoderConfig& config,
+ bool play_audio,
+ jobject media_crypto);
+
+ // An overloaded variant used by AudioDecoderJob and AudioMediaCodecDecoder.
+ // TODO(timav): Modify the above mentioned classes to pass parameters as
+ // AudioDecoderConfig and remove this method.
bool ConfigureAndStart(const AudioCodec& codec,
int sample_rate,
int channel_count,
« no previous file with comments | « no previous file | media/base/android/sdk_media_codec_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698