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 MEDIA_AUDIO_AUDIO_UTIL_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_UTIL_H_ |
6 #define MEDIA_AUDIO_AUDIO_UTIL_H_ | 6 #define MEDIA_AUDIO_AUDIO_UTIL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 100 matching lines...) Loading... |
111 uint32 shared_memory_size); | 111 uint32 shared_memory_size); |
112 | 112 |
113 #if defined(OS_WIN) | 113 #if defined(OS_WIN) |
114 | 114 |
115 // Does Windows support WASAPI? We are checking in lot of places, and | 115 // Does Windows support WASAPI? We are checking in lot of places, and |
116 // sometimes check was written incorrectly, so move into separate function. | 116 // sometimes check was written incorrectly, so move into separate function. |
117 MEDIA_EXPORT bool IsWASAPISupported(); | 117 MEDIA_EXPORT bool IsWASAPISupported(); |
118 | 118 |
119 #endif // defined(OS_WIN) | 119 #endif // defined(OS_WIN) |
120 | 120 |
121 // Crossfades |bytes_to_crossfade| bytes of data in |dest| with the | |
122 // data in |src|. Assumes there is room in |dest| and enough data in |src|. | |
123 MEDIA_EXPORT void Crossfade(int bytes_to_crossfade, int number_of_channels, | |
124 int bytes_per_channel, const uint8* src, | |
125 uint8* dest); | |
126 } // namespace media | 121 } // namespace media |
127 | 122 |
128 #endif // MEDIA_AUDIO_AUDIO_UTIL_H_ | 123 #endif // MEDIA_AUDIO_AUDIO_UTIL_H_ |
OLD | NEW |