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

Side by Side Diff: media/audio/openbsd/audio_manager_openbsd.h

Issue 163343002: Reland 153623004: Remove the unified IO code on the browser (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed the cras bot Created 6 years, 10 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
« no previous file with comments | « media/audio/mock_audio_manager.cc ('k') | media/audio/openbsd/audio_manager_openbsd.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_OPENBSD_AUDIO_MANAGER_OPENBSD_H_ 5 #ifndef MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_
6 #define MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_ 6 #define MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "media/audio/audio_manager_base.h" 11 #include "media/audio/audio_manager_base.h"
12 12
13 namespace media { 13 namespace media {
14 14
15 class MEDIA_EXPORT AudioManagerOpenBSD : public AudioManagerBase { 15 class MEDIA_EXPORT AudioManagerOpenBSD : public AudioManagerBase {
16 public: 16 public:
17 AudioManagerOpenBSD(AudioLogFactory* audio_log_factory); 17 AudioManagerOpenBSD(AudioLogFactory* audio_log_factory);
18 18
19 // Implementation of AudioManager. 19 // Implementation of AudioManager.
20 virtual bool HasAudioOutputDevices() OVERRIDE; 20 virtual bool HasAudioOutputDevices() OVERRIDE;
21 virtual bool HasAudioInputDevices() OVERRIDE; 21 virtual bool HasAudioInputDevices() OVERRIDE;
22 virtual AudioParameters GetInputStreamParameters( 22 virtual AudioParameters GetInputStreamParameters(
23 const std::string& device_id) OVERRIDE; 23 const std::string& device_id) OVERRIDE;
24 24
25 // Implementation of AudioManagerBase. 25 // Implementation of AudioManagerBase.
26 virtual AudioOutputStream* MakeLinearOutputStream( 26 virtual AudioOutputStream* MakeLinearOutputStream(
27 const AudioParameters& params) OVERRIDE; 27 const AudioParameters& params) OVERRIDE;
28 virtual AudioOutputStream* MakeLowLatencyOutputStream( 28 virtual AudioOutputStream* MakeLowLatencyOutputStream(
29 const AudioParameters& params, 29 const AudioParameters& params,
30 const std::string& device_id, 30 const std::string& device_id) OVERRIDE;
31 const std::string& input_device_id) OVERRIDE;
32 virtual AudioInputStream* MakeLinearInputStream( 31 virtual AudioInputStream* MakeLinearInputStream(
33 const AudioParameters& params, const std::string& device_id) OVERRIDE; 32 const AudioParameters& params, const std::string& device_id) OVERRIDE;
34 virtual AudioInputStream* MakeLowLatencyInputStream( 33 virtual AudioInputStream* MakeLowLatencyInputStream(
35 const AudioParameters& params, const std::string& device_id) OVERRIDE; 34 const AudioParameters& params, const std::string& device_id) OVERRIDE;
36 35
37 protected: 36 protected:
38 virtual ~AudioManagerOpenBSD(); 37 virtual ~AudioManagerOpenBSD();
39 38
40 virtual AudioParameters GetPreferredOutputStreamParameters( 39 virtual AudioParameters GetPreferredOutputStreamParameters(
41 const std::string& output_device_id, 40 const std::string& output_device_id,
42 const AudioParameters& input_params) OVERRIDE; 41 const AudioParameters& input_params) OVERRIDE;
43 42
44 private: 43 private:
45 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. 44 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream.
46 AudioOutputStream* MakeOutputStream(const AudioParameters& params); 45 AudioOutputStream* MakeOutputStream(const AudioParameters& params);
47 46
48 // Flag to indicate whether the pulse library has been initialized or not. 47 // Flag to indicate whether the pulse library has been initialized or not.
49 bool pulse_library_is_initialized_; 48 bool pulse_library_is_initialized_;
50 49
51 DISALLOW_COPY_AND_ASSIGN(AudioManagerOpenBSD); 50 DISALLOW_COPY_AND_ASSIGN(AudioManagerOpenBSD);
52 }; 51 };
53 52
54 } // namespace media 53 } // namespace media
55 54
56 #endif // MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_ 55 #endif // MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_
OLDNEW
« no previous file with comments | « media/audio/mock_audio_manager.cc ('k') | media/audio/openbsd/audio_manager_openbsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698