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

Unified Diff: media/audio/audio_util.h

Issue 5550006: Implement WebKitClientImpl::loadAudioResource() to decode in-memory audio fil... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/audio/audio_util.cc » ('j') | media/filters/audio_file_reader.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_util.h
===================================================================
--- media/audio/audio_util.h (revision 68541)
+++ media/audio/audio_util.h (working copy)
@@ -6,6 +6,7 @@
#define MEDIA_AUDIO_AUDIO_UTIL_H_
#include "base/basictypes.h"
+#include "media/ffmpeg/ffmpeg_common.h"
namespace media {
@@ -49,6 +50,19 @@
int bytes_per_sample,
float volume);
+// DeinterleaveAudioChannel() takes interleaved audio buffer |source|
+// of the given |sample_fmt| and |number_of_channels| and extracts
+// |number_of_frames| data for the given |channel_index| and
+// puts it in the floating point |destination|.
+// It returns |true| on success, or |false| if the |sample_fmt| is
+// not recognized.
+bool DeinterleaveAudioChannel(void* source,
+ float* destination,
+ AVSampleFormat sample_fmt,
scherkus (not reviewing) 2010/12/11 02:31:12 similar to the other functions you should remove t
Chris Rogers 2010/12/13 20:25:27 Done.
+ size_t number_of_channels,
scherkus (not reviewing) 2010/12/11 02:31:12 for the sake of API consistency I'd recommend we r
Chris Rogers 2010/12/13 20:25:27 Done.
+ unsigned channel_index,
+ unsigned number_of_frames);
+
} // namespace media
#endif // MEDIA_AUDIO_AUDIO_UTIL_H_
« no previous file with comments | « no previous file | media/audio/audio_util.cc » ('j') | media/filters/audio_file_reader.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698