OLD | NEW |
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 <set> | 8 #include <set> |
9 | 9 |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 // Implementation of AudioManager. | 28 // Implementation of AudioManager. |
29 bool HasAudioOutputDevices() override; | 29 bool HasAudioOutputDevices() override; |
30 bool HasAudioInputDevices() override; | 30 bool HasAudioInputDevices() override; |
31 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; | 31 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; |
32 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; | 32 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; |
33 AudioParameters GetInputStreamParameters( | 33 AudioParameters GetInputStreamParameters( |
34 const std::string& device_id) override; | 34 const std::string& device_id) override; |
35 | 35 |
36 AudioOutputStream* MakeAudioOutputStream( | 36 AudioOutputStream* MakeAudioOutputStream( |
37 const AudioParameters& params, | 37 const AudioParameters& params, |
38 const std::string& device_id) override; | 38 const std::string& device_id, |
39 AudioInputStream* MakeAudioInputStream(const AudioParameters& params, | 39 const LogCallback& log_callback) override; |
40 const std::string& device_id) override; | 40 AudioInputStream* MakeAudioInputStream( |
| 41 const AudioParameters& params, |
| 42 const std::string& device_id, |
| 43 const LogCallback& log_callback) override; |
41 void ReleaseOutputStream(AudioOutputStream* stream) override; | 44 void ReleaseOutputStream(AudioOutputStream* stream) override; |
42 void ReleaseInputStream(AudioInputStream* stream) override; | 45 void ReleaseInputStream(AudioInputStream* stream) override; |
43 | 46 |
44 // Implementation of AudioManagerBase. | 47 // Implementation of AudioManagerBase. |
45 AudioOutputStream* MakeLinearOutputStream( | 48 AudioOutputStream* MakeLinearOutputStream( |
46 const AudioParameters& params) override; | 49 const AudioParameters& params, |
| 50 const LogCallback& log_callback) override; |
47 AudioOutputStream* MakeLowLatencyOutputStream( | 51 AudioOutputStream* MakeLowLatencyOutputStream( |
48 const AudioParameters& params, | 52 const AudioParameters& params, |
49 const std::string& device_id) override; | 53 const std::string& device_id, |
| 54 const LogCallback& log_callback) override; |
50 AudioInputStream* MakeLinearInputStream( | 55 AudioInputStream* MakeLinearInputStream( |
51 const AudioParameters& params, | 56 const AudioParameters& params, |
52 const std::string& device_id) override; | 57 const std::string& device_id, |
| 58 const LogCallback& log_callback) override; |
53 AudioInputStream* MakeLowLatencyInputStream( | 59 AudioInputStream* MakeLowLatencyInputStream( |
54 const AudioParameters& params, | 60 const AudioParameters& params, |
55 const std::string& device_id) override; | 61 const std::string& device_id, |
| 62 const LogCallback& log_callback) override; |
56 | 63 |
57 static bool RegisterAudioManager(JNIEnv* env); | 64 static bool RegisterAudioManager(JNIEnv* env); |
58 | 65 |
59 void SetMute(JNIEnv* env, | 66 void SetMute(JNIEnv* env, |
60 const base::android::JavaParamRef<jobject>& obj, | 67 const base::android::JavaParamRef<jobject>& obj, |
61 jboolean muted); | 68 jboolean muted); |
62 | 69 |
63 // Sets a volume that applies to all this manager's output audio streams. | 70 // Sets a volume that applies to all this manager's output audio streams. |
64 // This overrides other SetVolume calls (e.g. through AudioHostMsg_SetVolume). | 71 // This overrides other SetVolume calls (e.g. through AudioHostMsg_SetVolume). |
65 void SetOutputVolumeOverride(double volume); | 72 void SetOutputVolumeOverride(double volume); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // If set, overrides volume level on output streams | 106 // If set, overrides volume level on output streams |
100 bool output_volume_override_set_; | 107 bool output_volume_override_set_; |
101 double output_volume_override_; | 108 double output_volume_override_; |
102 | 109 |
103 DISALLOW_COPY_AND_ASSIGN(AudioManagerAndroid); | 110 DISALLOW_COPY_AND_ASSIGN(AudioManagerAndroid); |
104 }; | 111 }; |
105 | 112 |
106 } // namespace media | 113 } // namespace media |
107 | 114 |
108 #endif // MEDIA_AUDIO_ANDROID_AUDIO_MANAGER_ANDROID_H_ | 115 #endif // MEDIA_AUDIO_ANDROID_AUDIO_MANAGER_ANDROID_H_ |
OLD | NEW |