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

Side by Side Diff: media/audio/mac/audio_manager_mac.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
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_MAC_AUDIO_MANAGER_MAC_H_ 5 #ifndef MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_
6 #define MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ 6 #define MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "media/audio/audio_manager_base.h" 10 #include "media/audio/audio_manager_base.h"
11 11
12 // Mac OS X implementation of the AudioManager singleton. This class is internal 12 // Mac OS X implementation of the AudioManager singleton. This class is internal
13 // to the audio output and only internal users can call methods not exposed by 13 // to the audio output and only internal users can call methods not exposed by
14 // the AudioManager class. 14 // the AudioManager class.
15 class AudioManagerMac : public AudioManagerBase { 15 class AudioManagerMac : public AudioManagerBase {
16 public: 16 public:
17 AudioManagerMac(); 17 AudioManagerMac();
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 void GetAudioInputDeviceNames(media::AudioDeviceNames* device_names) 22 virtual void GetAudioInputDeviceNames(media::AudioDeviceNames* device_names)
23 OVERRIDE; 23 OVERRIDE;
24 virtual AudioOutputStream* MakeAudioOutputStream( 24 virtual AudioOutputStream* MakeAudioOutputStream(
25 const AudioParameters& params) OVERRIDE; 25 const AudioParameters& params) OVERRIDE;
26 virtual AudioInputStream* MakeAudioInputStream( 26 virtual AudioInputStream* MakeAudioInputStream(
27 const AudioParameters& params) OVERRIDE; 27 const AudioParameters& params, const std::string& device_id) OVERRIDE;
28 virtual void MuteAll() OVERRIDE; 28 virtual void MuteAll() OVERRIDE;
29 virtual void UnMuteAll() OVERRIDE; 29 virtual void UnMuteAll() OVERRIDE;
30 30
31 // Mac-only method to free the streams created by above facoty methods. 31 // Mac-only method to free the streams created by above facoty methods.
32 // They are called internally by the respective audio stream when it has 32 // They are called internally by the respective audio stream when it has
33 // been closed. 33 // been closed.
34 void ReleaseOutputStream(AudioOutputStream* stream); 34 void ReleaseOutputStream(AudioOutputStream* stream);
35 void ReleaseInputStream(AudioInputStream* stream); 35 void ReleaseInputStream(AudioInputStream* stream);
36 36
37 private: 37 private:
38 virtual ~AudioManagerMac(); 38 virtual ~AudioManagerMac();
39 39
40 // Number of currently open output streams. 40 // Number of currently open output streams.
41 size_t num_output_streams_; 41 size_t num_output_streams_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(AudioManagerMac); 43 DISALLOW_COPY_AND_ASSIGN(AudioManagerMac);
44 }; 44 };
45 45
46 #endif // MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ 46 #endif // MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_
OLDNEW
« no previous file with comments | « media/audio/mac/audio_low_latency_input_mac_unittest.cc ('k') | media/audio/mac/audio_manager_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698