Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: media/audio/audio_util.h

Issue 9395057: Fix muted audio when playback rate != 1.0 or 0.0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 uint32 shared_memory_size); 109 uint32 shared_memory_size);
110 110
111 #if defined(OS_WIN) 111 #if defined(OS_WIN)
112 112
113 // Does Windows support WASAPI? We are checking in lot of places, and 113 // Does Windows support WASAPI? We are checking in lot of places, and
114 // sometimes check was written incorrectly, so move into separate function. 114 // sometimes check was written incorrectly, so move into separate function.
115 MEDIA_EXPORT bool IsWASAPISupported(); 115 MEDIA_EXPORT bool IsWASAPISupported();
116 116
117 #endif // defined(OS_WIN) 117 #endif // defined(OS_WIN)
118 118
119 // Crossfades |bytes_to_crossfade| bytes of data in |dest| with the
120 // data in |src|. Assumes there is room in |dest| and enough data in |src|.
121 MEDIA_EXPORT void Crossfade(int bytes_to_crossfade, int number_of_channels,
122 int bytes_per_channel, const uint8* src,
123 uint8* dest);
124
125
126 } // namespace media 119 } // namespace media
127 120
128 #endif // MEDIA_AUDIO_AUDIO_UTIL_H_ 121 #endif // MEDIA_AUDIO_AUDIO_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698