| OLD | NEW |
| 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 CONTENT_RENDERER_MEDIA_AUDIO_HARDWARE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_AUDIO_HARDWARE_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_AUDIO_HARDWARE_H_ | 6 #define CONTENT_RENDERER_MEDIA_AUDIO_HARDWARE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "media/base/channel_layout.h" | 10 #include "media/base/channel_layout.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // Must be called from RenderThreadImpl::current(). | 22 // Must be called from RenderThreadImpl::current(). |
| 23 CONTENT_EXPORT int GetInputSampleRate(); | 23 CONTENT_EXPORT int GetInputSampleRate(); |
| 24 | 24 |
| 25 // Fetch the buffer size we use for the default output device. | 25 // Fetch the buffer size we use for the default output device. |
| 26 // Must be called from RenderThreadImpl::current(). | 26 // Must be called from RenderThreadImpl::current(). |
| 27 // Must be used in conjunction with AUDIO_PCM_LOW_LATENCY. | 27 // Must be used in conjunction with AUDIO_PCM_LOW_LATENCY. |
| 28 CONTENT_EXPORT size_t GetOutputBufferSize(); | 28 CONTENT_EXPORT size_t GetOutputBufferSize(); |
| 29 | 29 |
| 30 // Fetch the audio channel layout for the default input device. | 30 // Fetch the audio channel layout for the default input device. |
| 31 // Must be called from RenderThreadImpl::current(). | 31 // Must be called from RenderThreadImpl::current(). |
| 32 CONTENT_EXPORT ChannelLayout GetInputChannelLayout(); | 32 CONTENT_EXPORT media::ChannelLayout GetInputChannelLayout(); |
| 33 | 33 |
| 34 // Forces the next call to any of the Get functions to query the hardware | 34 // Forces the next call to any of the Get functions to query the hardware |
| 35 // and repopulate the cache. | 35 // and repopulate the cache. |
| 36 CONTENT_EXPORT void ResetCache(); | 36 CONTENT_EXPORT void ResetCache(); |
| 37 | 37 |
| 38 } // namespace audio_hardware | 38 } // namespace audio_hardware |
| 39 | 39 |
| 40 #endif // CONTENT_RENDERER_MEDIA_AUDIO_HARDWARE_H_ | 40 #endif // CONTENT_RENDERER_MEDIA_AUDIO_HARDWARE_H_ |
| OLD | NEW |