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

Unified Diff: media/audio/android/audio_manager_android.h

Issue 14430003: Using native sampling rate and optimal buffer size for audio on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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 | « content/renderer/media/webrtc_audio_capturer.cc ('k') | media/audio/android/audio_manager_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/android/audio_manager_android.h
diff --git a/media/audio/android/audio_manager_android.h b/media/audio/android/audio_manager_android.h
index d21d3a1513e495a5154f238d4f59bfbec38c73ae..86b11fdf7d12256f09b4c68f95044e16345240c2 100644
--- a/media/audio/android/audio_manager_android.h
+++ b/media/audio/android/audio_manager_android.h
@@ -52,6 +52,12 @@ class MEDIA_EXPORT AudioManagerAndroid : public AudioManagerBase {
void SetAudioMode(int mode);
void RegisterHeadsetReceiver();
void UnregisterHeadsetReceiver();
+ int GetNativeOutputSampleRate();
+ int GetMinInputBufferSize(int rate, int channels);
+ int GetMinOutputBufferSize(int rate, int channels);
+ bool IsAudioLowLatencySupported();
+ int GetAudioLowLatencyFrameSize();
+ int GetAudioOptimalOutputFrameSize(int sample_rate);
// Java AudioManager instance.
base::android::ScopedJavaGlobalRef<jobject> j_audio_manager_;
« no previous file with comments | « content/renderer/media/webrtc_audio_capturer.cc ('k') | media/audio/android/audio_manager_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698