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

Side by Side Diff: media/audio/linux/audio_manager_linux.h

Issue 155471: Refactoring to share MockAudioOutputStream implementations across 3 platforms... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/linux/alsa_output.cc ('k') | media/audio/linux/audio_manager_linux.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_LINUX_AUDIO_MANAGER_LINUX_H_ 5 #ifndef MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_
6 #define MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ 6 #define MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_
7 7
8 #include "base/thread.h" 8 #include "base/thread.h"
9 #include "media/audio/audio_output.h" 9 #include "media/audio/audio_output.h"
10 10
11 class AudioManagerLinux : public AudioManager { 11 class AudioManagerLinux : public AudioManager {
12 public: 12 public:
13 AudioManagerLinux(); 13 AudioManagerLinux();
14 14
15 // Implementation of AudioManager. 15 // Implementation of AudioManager.
16 virtual bool HasAudioDevices(); 16 virtual bool HasAudioDevices();
17 virtual AudioOutputStream* MakeAudioStream(Format format, int channels, 17 virtual AudioOutputStream* MakeAudioStream(Format format, int channels,
18 int sample_rate, 18 int sample_rate,
19 char bits_per_sample); 19 char bits_per_sample);
20 virtual void MuteAll(); 20 virtual void MuteAll();
21 virtual void UnMuteAll(); 21 virtual void UnMuteAll();
22 virtual const void* GetLastMockBuffer();
23 22
24 private: 23 private:
25 // Friend function for invoking the private destructor at exit. 24 // Friend function for invoking the private destructor at exit.
26 friend void DestroyAudioManagerLinux(void*); 25 friend void DestroyAudioManagerLinux(void*);
27 virtual ~AudioManagerLinux(); 26 virtual ~AudioManagerLinux();
28 27
29 DISALLOW_COPY_AND_ASSIGN(AudioManagerLinux); 28 DISALLOW_COPY_AND_ASSIGN(AudioManagerLinux);
30 }; 29 };
31 30
32 #endif // MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ 31 #endif // MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_
OLDNEW
« no previous file with comments | « media/audio/linux/alsa_output.cc ('k') | media/audio/linux/audio_manager_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698