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

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: Functioning unittests 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..3dacd38a9592986e6d7270b68c539dbfd746df35 100644
--- a/media/base/audio_buffer.h
+++ b/media/base/audio_buffer.h
@@ -73,6 +73,12 @@ class MEDIA_EXPORT AudioBuffer
int dest_frame_offset,
AudioBus* dest);
+ // Copy |frames_to_copy| frames into |dest|, |frames_to_copy| is the size of
+ // buffer pointed to by |dest| NOT the per channel number of frames. The
+ // frames are converted from their source format into interleaved int32.
+ // Note: |frames_to_copy| must be a multiple of channel_count.
+ 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