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

Side by Side Diff: media/base/android/media_jni_registrar.cc

Issue 2466463005: Support (E)AC3 passthrough
Patch Set: Improve CastMediaClient::IsSupportedPassthroughAudio() Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/base/android/media_jni_registrar.h" 5 #include "media/base/android/media_jni_registrar.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h" 8 #include "base/android/jni_registrar.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 10
11 #include "media/audio/android/audio_manager_android.h" 11 #include "media/audio/android/audio_manager_android.h"
12 #include "media/audio/android/audio_record_input.h" 12 #include "media/audio/android/audio_record_input.h"
13 #include "media/audio/android/audio_track_output_stream.h"
13 #include "media/base/android/media_drm_bridge.h" 14 #include "media/base/android/media_drm_bridge.h"
14 #include "media/base/android/media_player_bridge.h" 15 #include "media/base/android/media_player_bridge.h"
15 #include "media/base/android/media_player_listener.h" 16 #include "media/base/android/media_player_listener.h"
16 17
17 namespace media { 18 namespace media {
18 19
19 static base::android::RegistrationMethod kMediaRegisteredMethods[] = { 20 static base::android::RegistrationMethod kMediaRegisteredMethods[] = {
20 {"AudioManagerAndroid", AudioManagerAndroid::RegisterAudioManager}, 21 {"AudioManagerAndroid", AudioManagerAndroid::RegisterAudioManager},
21 {"AudioRecordInput", AudioRecordInputStream::RegisterAudioRecordInput}, 22 {"AudioRecordInput", AudioRecordInputStream::RegisterAudioRecordInput},
23 {"AudioTrackOutputStream",
24 AudioTrackOutputStream::RegisterAudioTrackOutputStream},
22 {"MediaDrmBridge", MediaDrmBridge::RegisterMediaDrmBridge}, 25 {"MediaDrmBridge", MediaDrmBridge::RegisterMediaDrmBridge},
23 {"MediaPlayerBridge", MediaPlayerBridge::RegisterMediaPlayerBridge}, 26 {"MediaPlayerBridge", MediaPlayerBridge::RegisterMediaPlayerBridge},
24 {"MediaPlayerListener", MediaPlayerListener::RegisterMediaPlayerListener}, 27 {"MediaPlayerListener", MediaPlayerListener::RegisterMediaPlayerListener},
25 }; 28 };
26 29
27 bool RegisterJni(JNIEnv* env) { 30 bool RegisterJni(JNIEnv* env) {
28 return base::android::RegisterNativeMethods( 31 return base::android::RegisterNativeMethods(
29 env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods)); 32 env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods));
30 } 33 }
31 34
32 } // namespace media 35 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698