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

Side by Side Diff: media/audio/mac/audio_manager_mac.h

Issue 12387006: Pass more detailed audio hardware configuration information to the renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 20 matching lines...) Expand all
31 // Implementation of AudioManagerBase. 31 // Implementation of AudioManagerBase.
32 virtual AudioOutputStream* MakeLinearOutputStream( 32 virtual AudioOutputStream* MakeLinearOutputStream(
33 const AudioParameters& params) OVERRIDE; 33 const AudioParameters& params) OVERRIDE;
34 virtual AudioOutputStream* MakeLowLatencyOutputStream( 34 virtual AudioOutputStream* MakeLowLatencyOutputStream(
35 const AudioParameters& params) OVERRIDE; 35 const AudioParameters& params) OVERRIDE;
36 virtual AudioInputStream* MakeLinearInputStream( 36 virtual AudioInputStream* MakeLinearInputStream(
37 const AudioParameters& params, const std::string& device_id) OVERRIDE; 37 const AudioParameters& params, const std::string& device_id) OVERRIDE;
38 virtual AudioInputStream* MakeLowLatencyInputStream( 38 virtual AudioInputStream* MakeLowLatencyInputStream(
39 const AudioParameters& params, const std::string& device_id) OVERRIDE; 39 const AudioParameters& params, const std::string& device_id) OVERRIDE;
40 40
41 static bool GetDefaultOutputDevice(AudioDeviceID* device);
42
43 static bool GetDefaultOutputChannels(int* channels,
44 int* channels_per_frame);
45
46 static bool GetDeviceChannels(AudioDeviceID device,
47 AudioObjectPropertyScope scope,
48 int* channels,
49 int* channels_per_frame);
50
41 protected: 51 protected:
42 virtual ~AudioManagerMac(); 52 virtual ~AudioManagerMac();
43 53
44 virtual AudioParameters GetPreferredOutputStreamParameters( 54 virtual AudioParameters GetPreferredOutputStreamParameters(
45 const AudioParameters& input_params) OVERRIDE; 55 const AudioParameters& input_params) OVERRIDE;
46 56
47 private: 57 private:
48 // Helper methods for constructing AudioDeviceListenerMac on the audio thread. 58 // Helper methods for constructing AudioDeviceListenerMac on the audio thread.
49 void CreateDeviceListener(); 59 void CreateDeviceListener();
50 void DestroyDeviceListener(); 60 void DestroyDeviceListener();
51 void DelayedDeviceChange(); 61 void DelayedDeviceChange();
52 62
53 scoped_ptr<AudioDeviceListenerMac> output_device_listener_; 63 scoped_ptr<AudioDeviceListenerMac> output_device_listener_;
54 64
55 DISALLOW_COPY_AND_ASSIGN(AudioManagerMac); 65 DISALLOW_COPY_AND_ASSIGN(AudioManagerMac);
56 }; 66 };
57 67
58 } // namespace media 68 } // namespace media
59 69
60 #endif // MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ 70 #endif // MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698