diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-09-18 12:39:17 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-09-18 12:39:17 -0400 |
commit | 30b087ab3d28f1585987fa3f6ae006562ae192e3 (patch) | |
tree | 620ae0250b5d77f90a18f8c2b83be61e4fe7b0b5 /libs/backends/portaudio/audio_utils.h | |
parent | cb956e3e480716a3efd280a5287bdd7bee1cedc5 (diff) |
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
Diffstat (limited to 'libs/backends/portaudio/audio_utils.h')
-rw-r--r-- | libs/backends/portaudio/audio_utils.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/backends/portaudio/audio_utils.h b/libs/backends/portaudio/audio_utils.h index 5e7d0a1a2a..8b7ab9d529 100644 --- a/libs/backends/portaudio/audio_utils.h +++ b/libs/backends/portaudio/audio_utils.h @@ -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; } |