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

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

Issue 8499029: make pulseaudio available for all posix platforms because it's not linux only (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: don't include pulse on windows Created 9 years, 1 month 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/linux/pulse_output.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/basictypes.h" 8 #include <set>
9
10 #include "base/compiler_specific.h"
9 #include "media/audio/audio_manager_base.h" 11 #include "media/audio/audio_manager_base.h"
10 12
11 class AudioManagerOpenBSD : public AudioManagerBase { 13 class MEDIA_EXPORT AudioManagerOpenBSD : public AudioManagerBase {
12 public: 14 public:
13 AudioManagerOpenBSD(); 15 AudioManagerOpenBSD();
14 16
17 // Call before using a newly created AudioManagerOpenBSD instance.
18 virtual void Init() OVERRIDE;
19
15 // Implementation of AudioManager. 20 // Implementation of AudioManager.
16 virtual bool HasAudioOutputDevices() OVERRIDE; 21 virtual bool HasAudioOutputDevices() OVERRIDE;
17 virtual bool HasAudioInputDevices() OVERRIDE; 22 virtual bool HasAudioInputDevices() OVERRIDE;
18 virtual AudioOutputStream* MakeAudioOutputStream( 23 virtual AudioOutputStream* MakeAudioOutputStream(
19 const AudioParameters& params) OVERRIDE; 24 const AudioParameters& params) OVERRIDE;
20 virtual AudioInputStream* MakeAudioInputStream( 25 virtual AudioInputStream* MakeAudioInputStream(const AudioParameters& params)
21 const AudioParameters& params) OVERRIDE; 26 OVERRIDE;
22 virtual bool IsRecordingInProgress() OVERRIDE; 27
23 virtual void MuteAll() OVERRIDE; 28 virtual void MuteAll() OVERRIDE;
24 virtual void UnMuteAll() OVERRIDE; 29 virtual void UnMuteAll() OVERRIDE;
25 30
31 virtual void ReleaseOutputStream(AudioOutputStream* stream);
32
33 protected:
34 virtual ~AudioManagerOpenBSD();
35
26 private: 36 private:
27 virtual ~AudioManagerOpenBSD(); 37 std::set<AudioOutputStream*> active_streams_;
28 38
29 DISALLOW_COPY_AND_ASSIGN(AudioManagerOpenBSD); 39 DISALLOW_COPY_AND_ASSIGN(AudioManagerOpenBSD);
30 }; 40 };
31 41
32 #endif // MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_ 42 #endif // MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_
OLDNEW
« no previous file with comments | « media/audio/linux/pulse_output.cc ('k') | media/audio/openbsd/audio_manager_openbsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698