Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This change improves AudioContentBlockSpec in the following ways: - update the terminology to use "audio frame" as used in the audio industry, to designate a group of audio samples recorded at the same time, one sample by audio channel. With stereo audio, each audio frame has two audio samples, one per channel. We previously used "audio block", which is non-standard and easy to confuse with the audio content block. - update constructors to require an AudioFormat, which allows use to... - reorder parameters in AudioContentBlockSpec, so that all the parameters defining the format of the audio format comes first, followed by the frame spec (sample format, channel count, frame stride), then the sample frame rate, then the sample frame count, which is the most variable part of the definition, since in the same file you could easily have audio content blocks with different audio frame counts. Reviewed By: perdoch Differential Revision: D53338818 fbshipit-source-id: 6da17f9c3f91fee474b1404b78063bb273f2880b
- Loading branch information