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

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

Issue 1864483002: Forward output glitch information from stream WebRTC log (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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) override; 49 const AudioParameters& params,
50 const LogCallback& log_callback) override;
50 AudioOutputStream* MakeLowLatencyOutputStream( 51 AudioOutputStream* MakeLowLatencyOutputStream(
51 const AudioParameters& params, 52 const AudioParameters& params,
52 const std::string& device_id) override; 53 const std::string& device_id,
54 const LogCallback& log_callback) override;
53 AudioInputStream* MakeLinearInputStream( 55 AudioInputStream* MakeLinearInputStream(
54 const AudioParameters& params, 56 const AudioParameters& params,
55 const std::string& device_id) override; 57 const std::string& device_id,
58 const LogCallback& log_callback) override;
56 AudioInputStream* MakeLowLatencyInputStream( 59 AudioInputStream* MakeLowLatencyInputStream(
57 const AudioParameters& params, 60 const AudioParameters& params,
58 const std::string& device_id) override; 61 const std::string& device_id,
62 const LogCallback& log_callback) override;
59 std::string GetDefaultOutputDeviceID() override; 63 std::string GetDefaultOutputDeviceID() override;
60 64
61 // Used to track destruction of input and output streams. 65 // Used to track destruction of input and output streams.
62 void ReleaseOutputStream(AudioOutputStream* stream) override; 66 void ReleaseOutputStream(AudioOutputStream* stream) override;
63 void ReleaseInputStream(AudioInputStream* stream) override; 67 void ReleaseInputStream(AudioInputStream* stream) override;
64 68
65 // Called by AUHALStream::Close() before releasing the stream. 69 // Called by AUHALStream::Close() before releasing the stream.
66 // This method is a special contract between the real stream and the audio 70 // This method is a special contract between the real stream and the audio
67 // manager and it ensures that we only try to increase the IO buffer size 71 // manager and it ensures that we only try to increase the IO buffer size
68 // for real streams and not for fake or mocked streams. 72 // for real streams and not for fake or mocked streams.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // Maps device IDs and their corresponding actual (I/O) buffer sizes for 182 // Maps device IDs and their corresponding actual (I/O) buffer sizes for
179 // all output streams using the specific device. 183 // all output streams using the specific device.
180 std::map<AudioDeviceID, size_t> output_io_buffer_size_map_; 184 std::map<AudioDeviceID, size_t> output_io_buffer_size_map_;
181 185
182 DISALLOW_COPY_AND_ASSIGN(AudioManagerMac); 186 DISALLOW_COPY_AND_ASSIGN(AudioManagerMac);
183 }; 187 };
184 188
185 } // namespace media 189 } // namespace media
186 190
187 #endif // MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ 191 #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