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