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

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

Issue 1864483002: Forward output glitch information from stream WebRTC log (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finished up for review. Created 4 years, 7 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 <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
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 const StatisticsCallback& statistics_callback) override;
39 AudioInputStream* MakeAudioInputStream(const AudioParameters& params, 40 AudioInputStream* MakeAudioInputStream(const AudioParameters& params,
40 const std::string& device_id) override; 41 const std::string& device_id) override;
41 void ReleaseOutputStream(AudioOutputStream* stream) override; 42 void ReleaseOutputStream(AudioOutputStream* stream) override;
42 void ReleaseInputStream(AudioInputStream* stream) override; 43 void ReleaseInputStream(AudioInputStream* stream) override;
43 44
44 // Implementation of AudioManagerBase. 45 // Implementation of AudioManagerBase.
45 AudioOutputStream* MakeLinearOutputStream( 46 AudioOutputStream* MakeLinearOutputStream(
46 const AudioParameters& params) override; 47 const AudioParameters& params) override;
47 AudioOutputStream* MakeLowLatencyOutputStream( 48 AudioOutputStream* MakeLowLatencyOutputStream(
48 const AudioParameters& params, 49 const AudioParameters& params,
49 const std::string& device_id) override; 50 const std::string& device_id) override;
50 AudioInputStream* MakeLinearInputStream( 51 AudioInputStream* MakeLinearInputStream(
51 const AudioParameters& params, 52 const AudioParameters& params,
52 const std::string& device_id) override; 53 const std::string& device_id) override;
53 AudioInputStream* MakeLowLatencyInputStream( 54 AudioInputStream* MakeLowLatencyInputStream(
54 const AudioParameters& params, 55 const AudioParameters& params,
55 const std::string& device_id) override; 56 const std::string& device_id,
57 const StatisticsCallback& statistics_callback) override;
o1ka 2016/05/18 14:00:16 Why is it for input stream here?
Henrik Grunell 2016/05/23 17:13:54 Sorry, wrong one. Now I've added for both input an
56 58
57 static bool RegisterAudioManager(JNIEnv* env); 59 static bool RegisterAudioManager(JNIEnv* env);
58 60
59 void SetMute(JNIEnv* env, 61 void SetMute(JNIEnv* env,
60 const base::android::JavaParamRef<jobject>& obj, 62 const base::android::JavaParamRef<jobject>& obj,
61 jboolean muted); 63 jboolean muted);
62 64
63 // Sets a volume that applies to all this manager's output audio streams. 65 // Sets a volume that applies to all this manager's output audio streams.
64 // This overrides other SetVolume calls (e.g. through AudioHostMsg_SetVolume). 66 // This overrides other SetVolume calls (e.g. through AudioHostMsg_SetVolume).
65 void SetOutputVolumeOverride(double volume); 67 void SetOutputVolumeOverride(double volume);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // If set, overrides volume level on output streams 101 // If set, overrides volume level on output streams
100 bool output_volume_override_set_; 102 bool output_volume_override_set_;
101 double output_volume_override_; 103 double output_volume_override_;
102 104
103 DISALLOW_COPY_AND_ASSIGN(AudioManagerAndroid); 105 DISALLOW_COPY_AND_ASSIGN(AudioManagerAndroid);
104 }; 106 };
105 107
106 } // namespace media 108 } // namespace media
107 109
108 #endif // MEDIA_AUDIO_ANDROID_AUDIO_MANAGER_ANDROID_H_ 110 #endif // MEDIA_AUDIO_ANDROID_AUDIO_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698