Chromium Code Reviews| Index: media/audio/android/audio_manager_android.h |
| =================================================================== |
| --- media/audio/android/audio_manager_android.h (revision 187192) |
| +++ media/audio/android/audio_manager_android.h (working copy) |
| @@ -5,6 +5,7 @@ |
| #ifndef MEDIA_AUDIO_ANDROID_AUDIO_MANAGER_ANDROID_H_ |
| #define MEDIA_AUDIO_ANDROID_AUDIO_MANAGER_ANDROID_H_ |
| +#include "base/android/jni_android.h" |
| #include "media/audio/audio_manager_base.h" |
| namespace media { |
| @@ -12,6 +13,11 @@ |
| // Android implemention of AudioManager. |
| class MEDIA_EXPORT AudioManagerAndroid : public AudioManagerBase { |
| public: |
| + static const int kAudioModeNormal = 0x00000000; |
| + static const int kAudioModeRingtone = 0x00000001; |
| + static const int kAudioModeInCall = 0x00000002; |
| + static const int kAudioModeInCommunication = 0x00000003; |
|
no longer working on chromium
2013/03/11 16:07:54
these static variables do not need to be in the in
|
| + |
| AudioManagerAndroid(); |
| // Implementation of AudioManager. |
| @@ -32,11 +38,14 @@ |
| virtual AudioInputStream* MakeLowLatencyInputStream( |
| const AudioParameters& params, const std::string& device_id) OVERRIDE; |
| + static bool RegisterAudioManager(JNIEnv* env); |
| + |
| protected: |
| virtual ~AudioManagerAndroid(); |
| virtual AudioParameters GetPreferredOutputStreamParameters( |
| const AudioParameters& input_params) OVERRIDE; |
| + void SetAudioMode(int mode); |
| private: |
| DISALLOW_COPY_AND_ASSIGN(AudioManagerAndroid); |