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

Side by Side Diff: media/audio/android/audio_manager_android.h

Issue 14049003: Set default sampling rate to 44100 and query the native output sampling rate. (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: rebase 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 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 #ifndef MEDIA_AUDIO_ANDROID_AUDIO_MANAGER_ANDROID_H_ 5 #ifndef MEDIA_AUDIO_ANDROID_AUDIO_MANAGER_ANDROID_H_
6 #define MEDIA_AUDIO_ANDROID_AUDIO_MANAGER_ANDROID_H_ 6 #define MEDIA_AUDIO_ANDROID_AUDIO_MANAGER_ANDROID_H_
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "media/audio/audio_manager_base.h" 9 #include "media/audio/audio_manager_base.h"
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 protected: 45 protected:
46 virtual ~AudioManagerAndroid(); 46 virtual ~AudioManagerAndroid();
47 47
48 virtual AudioParameters GetPreferredOutputStreamParameters( 48 virtual AudioParameters GetPreferredOutputStreamParameters(
49 const AudioParameters& input_params) OVERRIDE; 49 const AudioParameters& input_params) OVERRIDE;
50 50
51 private: 51 private:
52 void SetAudioMode(int mode); 52 void SetAudioMode(int mode);
53 void RegisterHeadsetReceiver(); 53 void RegisterHeadsetReceiver();
54 void UnregisterHeadsetReceiver(); 54 void UnregisterHeadsetReceiver();
55 int GetNativeOutputSampleRate();
55 56
56 // Java AudioManager instance. 57 // Java AudioManager instance.
57 base::android::ScopedJavaGlobalRef<jobject> j_audio_manager_; 58 base::android::ScopedJavaGlobalRef<jobject> j_audio_manager_;
58 59
59 DISALLOW_COPY_AND_ASSIGN(AudioManagerAndroid); 60 DISALLOW_COPY_AND_ASSIGN(AudioManagerAndroid);
60 }; 61 };
61 62
62 } // namespace media 63 } // namespace media
63 64
64 #endif // MEDIA_AUDIO_ANDROID_AUDIO_MANAGER_ANDROID_H_ 65 #endif // MEDIA_AUDIO_ANDROID_AUDIO_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698