OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 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. | |
4 | |
5 #ifndef MEDIA_BASE_AUDIO_HARDWARE_CONFIG_H_ | |
6 #define MEDIA_BASE_AUDIO_HARDWARE_CONFIG_H_ | |
7 | |
8 #include "media/base/channel_layout.h" | |
9 #include "media/base/media_export.h" | |
10 | |
11 namespace media { | |
12 | |
13 // Interface for providing access to the audio hardware configuration from the | |
14 // renderer side. Browser side clients should query the methods in audio_util | |
15 // directly. | |
16 class MEDIA_EXPORT AudioHardwareConfig { | |
17 public: | |
18 // Accessors for the currently cached hardware configuration. | |
19 virtual int GetOutputBufferSize() = 0; | |
20 virtual int GetOutputSampleRate() = 0; | |
21 virtual int GetInputSampleRate() = 0; | |
22 virtual ChannelLayout GetInputChannelLayout() = 0; | |
23 | |
henrika (OOO until Aug 14)
2013/01/29 10:46:49
Two methods are excluded (UpdateOutput/InputConfig
DaleCurtis
2013/01/30 01:31:06
You brought up a good point and with some creativi
henrika (OOO until Aug 14)
2013/01/30 10:10:06
Great.
| |
24 protected: | |
25 virtual ~AudioHardwareConfig() {} | |
26 }; | |
27 | |
28 } // namespace media | |
29 | |
30 #endif // MEDIA_BASE_AUDIO_HARDWARE_CONFIG_H_ | |
OLD | NEW |