Index: media/base/audio_buffer.h |
diff --git a/media/base/audio_buffer.h b/media/base/audio_buffer.h |
index a07985c9fd8ca9fb4f3545f429ee851c5cdad363..93aa70b2080b0c057c5b980d175314e117c5cc85 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 into |std::vector<int32>|. The frames are converted from their |
+ // source format into planar int32; note that while each frame use 32 bits |
+ // each fame is actually PCM signed 24-bit little-endian. |
+ std::vector<int32> ReadFrames(); |
DaleCurtis
2014/09/24 22:30:17
We don't have a SampleFormat for planar 24 bit, on
|
+ |
// 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 |