DescriptionRemove AudioBuffer::set_duration(), instead base on frames.
wolenetz@ asked on https://codereview.chromium.org/251893002/ why
we allow set_duration() to be called. It used to be required since
AudioBuffers had no concept of sample rate. However, we now attach
a sample rate to every AudioBuffer which allows us to enforce a
valid duration for every buffer.
This CL also aligns MakeAudioBuffer() to do the same thing with
planar and interleaved data for the sake of easier testing.
BUG=none
TEST=media_unittests
NOTRY=true
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267779
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267842
Patch Set 1 : Align MakeAudioBuffer(). #Patch Set 2 : Fix content decryptor #
Total comments: 5
Patch Set 3 : Comments. #Patch Set 4 : Fix cast. Format. #Patch Set 5 : Fix divide by zero case. #Messages
Total messages: 22 (0 generated)
|