diff options
author | pwestin <pwestin@chromium.org> | 2014-09-29 19:00:40 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-30 02:00:57 +0000 |
commit | 34e0ac22e25cfac606296646ecb765fa4bd3b54e (patch) | |
tree | 580e9b32bac1db5a752828c986bfbeb2cfbf8c8d /media/base/audio_buffer.h | |
parent | 6ae2b341c73909cf902078446346d6c900273409 (diff) | |
download | chromium_src-34e0ac22e25cfac606296646ecb765fa4bd3b54e.zip chromium_src-34e0ac22e25cfac606296646ecb765fa4bd3b54e.tar.gz chromium_src-34e0ac22e25cfac606296646ecb765fa4bd3b54e.tar.bz2 |
Adding new function ReadFrames() that returns the audio frame in planar
format int32.
BUG=
Review URL: https://codereview.chromium.org/600143002
Cr-Commit-Position: refs/heads/master@{#297340}
Diffstat (limited to 'media/base/audio_buffer.h')
-rw-r--r-- | media/base/audio_buffer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/media/base/audio_buffer.h b/media/base/audio_buffer.h index a07985c..f81c2f6 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 |