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

Side by Side Diff: media/audio/audio_manager_base.h

Issue 8491044: Link things together and enable the device selection for linux and mac. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: rebase2 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 | Annotate | Revision Log
« no previous file with comments | « media/audio/audio_manager.h ('k') | media/audio/audio_manager_base.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_AUDIO_MANAGER_BASE_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/threading/thread.h" 11 #include "base/threading/thread.h"
12 #include "media/audio/audio_manager.h" 12 #include "media/audio/audio_manager.h"
13 13
14 class AudioOutputDispatcher; 14 class AudioOutputDispatcher;
15 15
16 // AudioManagerBase provides AudioManager functions common for all platforms. 16 // AudioManagerBase provides AudioManager functions common for all platforms.
17 class MEDIA_EXPORT AudioManagerBase : public AudioManager { 17 class MEDIA_EXPORT AudioManagerBase : public AudioManager {
18 public: 18 public:
19 // Name of the generic "default" device. 19 // Name of the generic "default" device.
20 static const char kDefaultDeviceName[]; 20 static const char kDefaultDeviceName[];
21 // Unique Id of the generic "default" device.
22 static const char kDefaultDeviceId[];
21 23
22 AudioManagerBase(); 24 AudioManagerBase();
23 25
24 virtual void Init() OVERRIDE; 26 virtual void Init() OVERRIDE;
25 virtual void Cleanup() OVERRIDE; 27 virtual void Cleanup() OVERRIDE;
26 28
27 virtual MessageLoop* GetMessageLoop() OVERRIDE; 29 virtual MessageLoop* GetMessageLoop() OVERRIDE;
28 30
29 virtual string16 GetAudioInputDeviceModel() OVERRIDE; 31 virtual string16 GetAudioInputDeviceModel() OVERRIDE;
30 32
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 67
66 // Lock used to synchronize the access to num_active_input_streams_. 68 // Lock used to synchronize the access to num_active_input_streams_.
67 // Do not use for anything else and try to avoid using other locks 69 // Do not use for anything else and try to avoid using other locks
68 // in this code whenever possible. 70 // in this code whenever possible.
69 base::Lock active_input_streams_lock_; 71 base::Lock active_input_streams_lock_;
70 72
71 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); 73 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase);
72 }; 74 };
73 75
74 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 76 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « media/audio/audio_manager.h ('k') | media/audio/audio_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698