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

Side by Side Diff: media/audio/win/audio_manager_win.h

Issue 2929823002: Making AudioManagerBase::ShutdownOnAudioThread() platform-agnostic (Closed)
Patch Set: Created 3 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_WIN_AUDIO_MANAGER_WIN_H_ 5 #ifndef MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_
6 #define MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ 6 #define MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 const AudioParameters& params, 49 const AudioParameters& params,
50 const std::string& device_id, 50 const std::string& device_id,
51 const LogCallback& log_callback) override; 51 const LogCallback& log_callback) override;
52 AudioInputStream* MakeLowLatencyInputStream( 52 AudioInputStream* MakeLowLatencyInputStream(
53 const AudioParameters& params, 53 const AudioParameters& params,
54 const std::string& device_id, 54 const std::string& device_id,
55 const LogCallback& log_callback) override; 55 const LogCallback& log_callback) override;
56 std::string GetDefaultOutputDeviceID() override; 56 std::string GetDefaultOutputDeviceID() override;
57 57
58 protected: 58 protected:
59 void ShutdownOnAudioThread() override; 59 void ShutdownOnAudioThread(bool immediately) override;
60 AudioParameters GetPreferredOutputStreamParameters( 60 AudioParameters GetPreferredOutputStreamParameters(
61 const std::string& output_device_id, 61 const std::string& output_device_id,
62 const AudioParameters& input_params) override; 62 const AudioParameters& input_params) override;
63 63
64 private: 64 private:
65 // Allow unit test to modify the utilized enumeration API. 65 // Allow unit test to modify the utilized enumeration API.
66 friend class AudioManagerTest; 66 friend class AudioManagerTest;
67 67
68 // Helper methods for performing expensive initialization tasks on the audio 68 // Helper methods for performing expensive initialization tasks on the audio
69 // thread instead of on the UI thread which AudioManager is constructed on. 69 // thread instead of on the UI thread which AudioManager is constructed on.
70 void InitializeOnAudioThread(); 70 void InitializeOnAudioThread();
71 71
72 void GetAudioDeviceNamesImpl(bool input, AudioDeviceNames* device_names); 72 void GetAudioDeviceNamesImpl(bool input, AudioDeviceNames* device_names);
73 73
74 // Listen for output device changes. 74 // Listen for output device changes.
75 std::unique_ptr<AudioDeviceListenerWin> output_device_listener_; 75 std::unique_ptr<AudioDeviceListenerWin> output_device_listener_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); 77 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin);
78 }; 78 };
79 79
80 } // namespace media 80 } // namespace media
81 81
82 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ 82 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698