globally change all use of "frame" to refer to audio into "sample".

Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode
and video in order to keep the legible
This commit is contained in:
Paul Davis 2017-09-18 12:39:17 -04:00
parent cb956e3e48
commit 30b087ab3d
577 changed files with 9003 additions and 8997 deletions

View file

@ -25,12 +25,12 @@ inline
void
deinterleave_audio_data(const float* interleaved_input,
float* output,
uint32_t frame_count,
uint32_t sample_count,
uint32_t channel,
uint32_t channel_count)
{
const float* ptr = interleaved_input + channel;
while (frame_count-- > 0) {
while (sample_count-- > 0) {
*output++ = *ptr;
ptr += channel_count;
}
@ -40,12 +40,12 @@ inline
void
interleave_audio_data(float* input,
float* interleaved_output,
uint32_t frame_count,
uint32_t sample_count,
uint32_t channel,
uint32_t channel_count)
{
float* ptr = interleaved_output + channel;
while (frame_count-- > 0) {
while (sample_count-- > 0) {
*ptr = *input++;
ptr += channel_count;
}