Home | History | Annotate | Download | only in jni

Lines Matching refs:num_frames

82 void RingBuffer::Write(const float* samples, int num_frames) {
83 if (!num_frames) {
86 if (head_ + num_frames <= size_) {
88 num_frames * num_channels_ * sizeof(samples[0]));
89 head_ += num_frames;
94 head_ = num_frames - overhead;
98 head_logical_ += num_frames;
101 void RingBuffer::Copy(int reader, float* destination, int num_frames) const {
103 if (pos + num_frames <= size_) {
105 num_channels_ * num_frames * sizeof(destination[0]));
110 int remaining = num_frames - wrapped;
116 float* RingBuffer::GetPointer(int reader, int num_frames) {
118 if (pos + num_frames <= size_) {
121 if (num_frames > temp_read_buffer_size_) {
122 temp_read_buffer_size_ = num_frames;
127 Copy(reader, temp_read_buffer_, num_frames);
132 void RingBuffer::MergeBack(int reader, const float* source, int num_frames) {
138 if (pos + num_frames <= size_) {
140 num_channels_ * num_frames * sizeof(source[0]));
145 int remaining = num_frames - wrapped;