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
3 // found in the LICENSE file.
5 #ifndef MEDIA_AUDIO_AUDIO_UTIL_H_
6 #define MEDIA_AUDIO_AUDIO_UTIL_H_
8 #include "base/basictypes.h"
9 #include "build/build_config.h"
10 #include "media/base/media_export.h"
14 // Returns user buffer size as specified on the command line or 0 if no buffer
15 // size has been specified.
16 MEDIA_EXPORT
int GetUserBufferSize();
18 // Computes a buffer size based on the given |sample_rate|. Must be used in
19 // conjunction with AUDIO_PCM_LINEAR.
20 MEDIA_EXPORT
size_t GetHighLatencyOutputBufferSize(int sample_rate
);
24 // Returns number of buffers to be used by wave out.
25 MEDIA_EXPORT
int NumberOfWaveOutBuffers();
27 #endif // defined(OS_WIN)
31 #endif // MEDIA_AUDIO_AUDIO_UTIL_H_