summaryrefslogtreecommitdiffstats
path: root/media/audio/audio_util.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-04 21:12:15 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-04 21:12:15 +0000
commit274f591d35c8cedbb4cf5a27135a93733b021076 (patch)
treee609b5da96a5810a46429a05dc05ec9135754e3c /media/audio/audio_util.h
parent9bae02c23cc4881423e3a3d5f4f751e7a6262dca (diff)
downloadchromium_src-274f591d35c8cedbb4cf5a27135a93733b021076.zip
chromium_src-274f591d35c8cedbb4cf5a27135a93733b021076.tar.gz
chromium_src-274f591d35c8cedbb4cf5a27135a93733b021076.tar.bz2
Create media.dll
Review URL: http://codereview.chromium.org/7523051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95496 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/audio_util.h')
-rw-r--r--media/audio/audio_util.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/media/audio/audio_util.h b/media/audio/audio_util.h
index 0d65e19..a78fdf1 100644
--- a/media/audio/audio_util.h
+++ b/media/audio/audio_util.h
@@ -8,6 +8,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "media/base/media_export.h"
namespace media {
@@ -26,11 +27,11 @@ namespace media {
// formats.
// The buffer is modified in-place to avoid memory management, as this
// function may be called in performance critical code.
-bool AdjustVolume(void* buf,
- size_t buflen,
- int channels,
- int bytes_per_sample,
- float volume);
+MEDIA_EXPORT bool AdjustVolume(void* buf,
+ size_t buflen,
+ int channels,
+ int bytes_per_sample,
+ float volume);
// FoldChannels() does a software multichannel folding down to stereo.
// Channel order is assumed to be 5.1 Dolby standard which is
@@ -45,11 +46,11 @@ bool AdjustVolume(void* buf,
// volume.
// The buffer is modified in-place to avoid memory management, as this
// function may be called in performance critical code.
-bool FoldChannels(void* buf,
- size_t buflen,
- int channels,
- int bytes_per_sample,
- float volume);
+MEDIA_EXPORT bool FoldChannels(void* buf,
+ size_t buflen,
+ int channels,
+ int bytes_per_sample,
+ float volume);
// DeinterleaveAudioChannel() takes interleaved audio buffer |source|
// of the given |sample_fmt| and |number_of_channels| and extracts
@@ -70,12 +71,12 @@ bool DeinterleaveAudioChannel(void* source,
// The size of the |source| vector determines the number of channels.
// The |destination| buffer is assumed to be large enough to hold the
// result. Thus it must be at least size: number_of_frames * source.size()
-void InterleaveFloatToInt16(const std::vector<float*>& source,
- int16* destination,
- size_t number_of_frames);
+MEDIA_EXPORT void InterleaveFloatToInt16(const std::vector<float*>& source,
+ int16* destination,
+ size_t number_of_frames);
// Returns the default audio hardware sample-rate.
-double GetAudioHardwareSampleRate();
+MEDIA_EXPORT double GetAudioHardwareSampleRate();
} // namespace media