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

Side by Side Diff: media/audio/mac/audio_manager_mac.h

Issue 2023943002: Revert of Forward output glitch information from stream WebRTC log (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_MAC_AUDIO_MANAGER_MAC_H_ 5 #ifndef MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_
6 #define MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ 6 #define MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_
7 7
8 #include <AudioUnit/AudioUnit.h> 8 #include <AudioUnit/AudioUnit.h>
9 #include <CoreAudio/AudioHardware.h> 9 #include <CoreAudio/AudioHardware.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 28 matching lines...) Expand all
39 bool HasAudioInputDevices() override; 39 bool HasAudioInputDevices() override;
40 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; 40 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override;
41 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; 41 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override;
42 AudioParameters GetInputStreamParameters( 42 AudioParameters GetInputStreamParameters(
43 const std::string& device_id) override; 43 const std::string& device_id) override;
44 std::string GetAssociatedOutputDeviceID( 44 std::string GetAssociatedOutputDeviceID(
45 const std::string& input_device_id) override; 45 const std::string& input_device_id) override;
46 46
47 // Implementation of AudioManagerBase. 47 // Implementation of AudioManagerBase.
48 AudioOutputStream* MakeLinearOutputStream( 48 AudioOutputStream* MakeLinearOutputStream(
49 const AudioParameters& params, 49 const AudioParameters& params) override;
50 const LogCallback& log_callback) override;
51 AudioOutputStream* MakeLowLatencyOutputStream( 50 AudioOutputStream* MakeLowLatencyOutputStream(
52 const AudioParameters& params, 51 const AudioParameters& params,
53 const std::string& device_id, 52 const std::string& device_id) override;
54 const LogCallback& log_callback) override;
55 AudioInputStream* MakeLinearInputStream( 53 AudioInputStream* MakeLinearInputStream(
56 const AudioParameters& params, 54 const AudioParameters& params,
57 const std::string& device_id, 55 const std::string& device_id) override;
58 const LogCallback& log_callback) override;
59 AudioInputStream* MakeLowLatencyInputStream( 56 AudioInputStream* MakeLowLatencyInputStream(
60 const AudioParameters& params, 57 const AudioParameters& params,
61 const std::string& device_id, 58 const std::string& device_id) override;
62 const LogCallback& log_callback) override;
63 std::string GetDefaultOutputDeviceID() override; 59 std::string GetDefaultOutputDeviceID() override;
64 60
65 // Used to track destruction of input and output streams. 61 // Used to track destruction of input and output streams.
66 void ReleaseOutputStream(AudioOutputStream* stream) override; 62 void ReleaseOutputStream(AudioOutputStream* stream) override;
67 void ReleaseInputStream(AudioInputStream* stream) override; 63 void ReleaseInputStream(AudioInputStream* stream) override;
68 64
69 // Called by AUHALStream::Close() before releasing the stream. 65 // Called by AUHALStream::Close() before releasing the stream.
70 // This method is a special contract between the real stream and the audio 66 // This method is a special contract between the real stream and the audio
71 // manager and it ensures that we only try to increase the IO buffer size 67 // manager and it ensures that we only try to increase the IO buffer size
72 // for real streams and not for fake or mocked streams. 68 // for real streams and not for fake or mocked streams.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // Maps device IDs and their corresponding actual (I/O) buffer sizes for 178 // Maps device IDs and their corresponding actual (I/O) buffer sizes for
183 // all output streams using the specific device. 179 // all output streams using the specific device.
184 std::map<AudioDeviceID, size_t> output_io_buffer_size_map_; 180 std::map<AudioDeviceID, size_t> output_io_buffer_size_map_;
185 181
186 DISALLOW_COPY_AND_ASSIGN(AudioManagerMac); 182 DISALLOW_COPY_AND_ASSIGN(AudioManagerMac);
187 }; 183 };
188 184
189 } // namespace media 185 } // namespace media
190 186
191 #endif // MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ 187 #endif // MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_
OLDNEW
« no previous file with comments | « media/audio/mac/audio_low_latency_input_mac_unittest.cc ('k') | media/audio/mac/audio_manager_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698