srpcgen: Use 'const char*' for string parameters
[chromium-blink-merge.git] / media / audio / mac / audio_manager_mac.h
blob2060b6631bcf76b44481fba3e84a3a325d859ecd
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
3 // found in the LICENSE file.
5 #ifndef MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_
6 #define MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "media/audio/audio_manager_base.h"
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
14 // the AudioManager class.
15 class AudioManagerMac : public AudioManagerBase {
16 public:
17 AudioManagerMac();
19 // Implementation of AudioManager.
20 virtual bool HasAudioOutputDevices() OVERRIDE;
21 virtual bool HasAudioInputDevices() OVERRIDE;
22 virtual void GetAudioInputDeviceNames(media::AudioDeviceNames* device_names)
23 OVERRIDE;
24 virtual AudioOutputStream* MakeAudioOutputStream(
25 const AudioParameters& params) OVERRIDE;
26 virtual AudioInputStream* MakeAudioInputStream(
27 const AudioParameters& params, const std::string& device_id) OVERRIDE;
28 virtual void MuteAll() OVERRIDE;
29 virtual void UnMuteAll() OVERRIDE;
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
33 // been closed.
34 void ReleaseOutputStream(AudioOutputStream* stream);
35 void ReleaseInputStream(AudioInputStream* stream);
37 protected:
38 virtual ~AudioManagerMac();
40 private:
42 // Number of currently open output streams.
43 size_t num_output_streams_;
45 DISALLOW_COPY_AND_ASSIGN(AudioManagerMac);
48 #endif // MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_