OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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_BASE_AUDIO_HARDWARE_CONFIG_H_ | 5 #ifndef MEDIA_BASE_AUDIO_HARDWARE_CONFIG_H_ |
6 #define MEDIA_BASE_AUDIO_HARDWARE_CONFIG_H_ | 6 #define MEDIA_BASE_AUDIO_HARDWARE_CONFIG_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
9 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
10 #include "media/audio/audio_parameters.h" | 11 #include "media/audio/audio_parameters.h" |
11 #include "media/base/channel_layout.h" | 12 #include "media/base/channel_layout.h" |
12 #include "media/base/media_export.h" | 13 #include "media/base/media_export.h" |
13 | 14 |
14 namespace media { | 15 namespace media { |
15 | 16 |
16 // Provides thread safe access to the audio hardware configuration. | 17 // Provides thread safe access to the audio hardware configuration. |
17 class MEDIA_EXPORT AudioHardwareConfig { | 18 class MEDIA_EXPORT AudioHardwareConfig { |
18 public: | 19 public: |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 mutable base::Lock config_lock_; | 53 mutable base::Lock config_lock_; |
53 media::AudioParameters input_params_; | 54 media::AudioParameters input_params_; |
54 media::AudioParameters output_params_; | 55 media::AudioParameters output_params_; |
55 | 56 |
56 DISALLOW_COPY_AND_ASSIGN(AudioHardwareConfig); | 57 DISALLOW_COPY_AND_ASSIGN(AudioHardwareConfig); |
57 }; | 58 }; |
58 | 59 |
59 } // namespace media | 60 } // namespace media |
60 | 61 |
61 #endif // MEDIA_BASE_AUDIO_HARDWARE_CONFIG_H_ | 62 #endif // MEDIA_BASE_AUDIO_HARDWARE_CONFIG_H_ |
OLD | NEW |