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

Unified Diff: media/base/audio_buffer.h

Issue 600143002: Adding new function ReadFrames() that returns the audio frame in planar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually include the template function Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/audio_buffer.cc » ('j') | media/base/audio_buffer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_buffer.h
diff --git a/media/base/audio_buffer.h b/media/base/audio_buffer.h
index a07985c9fd8ca9fb4f3545f429ee851c5cdad363..f81c2f63ab12ec0b64007277d4dac53036a13c6c 100644
--- a/media/base/audio_buffer.h
+++ b/media/base/audio_buffer.h
@@ -73,6 +73,11 @@ class MEDIA_EXPORT AudioBuffer
int dest_frame_offset,
AudioBus* dest);
+ // Copy |frames_to_copy| frames into |dest|, |frames_to_copy| is the number of
+ // frames to copy. The frames are converted from their source format into
+ // interleaved int32.
+ void ReadFramesInterleavedS32(int frames_to_copy, int32* dest);
+
// Trim an AudioBuffer by removing |frames_to_trim| frames from the start.
// Timestamp and duration are adjusted to reflect the fewer frames.
// Note that repeated calls to TrimStart() may result in timestamp() and
« no previous file with comments | « no previous file | media/base/audio_buffer.cc » ('j') | media/base/audio_buffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698