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

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

Issue 3192017: Revert 57254 - Share one thread between all AudioOutputControllers instead of... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « media/audio/mac/audio_manager_mac.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "media/audio/audio_io.h" 8 #include "media/audio/audio_io.h"
9 9
10 class AudioManagerOpenBSD : public AudioManagerBase { 10 class AudioManagerOpenBSD : public AudioManager {
11 public: 11 public:
12 AudioManagerOpenBSD(); 12 AudioManagerOpenBSD();
13 13
14 // Call before using a newly created AudioManagerOpenBSD instance. 14 // Call before using a newly created AudioManagerOpenBSD instance.
15 virtual void Init(); 15 virtual void Init();
16 16
17 // Implementation of AudioManager. 17 // Implementation of AudioManager.
18 virtual bool HasAudioOutputDevices(); 18 virtual bool HasAudioOutputDevices();
19 virtual bool HasAudioInputDevices(); 19 virtual bool HasAudioInputDevices();
20 virtual AudioOutputStream* MakeAudioOutputStream(Format format, int channels, 20 virtual AudioOutputStream* MakeAudioOutputStream(Format format, int channels,
21 int sample_rate, 21 int sample_rate,
22 char bits_per_sample); 22 char bits_per_sample);
23 virtual AudioInputStream* MakeAudioInputStream(Format format, int channels, 23 virtual AudioInputStream* MakeAudioInputStream(Format format, int channels,
24 int sample_rate, 24 int sample_rate,
25 char bits_per_sample, 25 char bits_per_sample,
26 uint32 samples_per_packet); 26 uint32 samples_per_packet);
27 virtual void MuteAll(); 27 virtual void MuteAll();
28 virtual void UnMuteAll(); 28 virtual void UnMuteAll();
29 29
30 protected: 30 protected:
31 // Friend function for invoking the destructor at exit. 31 // Friend function for invoking the destructor at exit.
32 friend void DestroyAudioManagerOpenBSD(void*); 32 friend void DestroyAudioManagerOpenBSD(void*);
33 virtual ~AudioManagerOpenBSD(); 33 virtual ~AudioManagerOpenBSD();
34 34
35 private: 35 private:
36 DISALLOW_COPY_AND_ASSIGN(AudioManagerOpenBSD); 36 DISALLOW_COPY_AND_ASSIGN(AudioManagerOpenBSD);
37 }; 37 };
38 38
39 #endif // MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_ 39 #endif // MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_
OLDNEW
« no previous file with comments | « media/audio/mac/audio_manager_mac.cc ('k') | media/audio/openbsd/audio_manager_openbsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698