Home
last modified time | relevance | path

Searched refs:num_frames (Results 1 – 4 of 4) sorted by relevance

/frameworks/ex/variablespeed/jni/
Dring_buffer.cc82 void RingBuffer::Write(const float* samples, int num_frames) { in Write() argument
83 if (!num_frames) { in Write()
86 if (head_ + num_frames <= size_) { in Write()
88 num_frames * num_channels_ * sizeof(samples[0])); in Write()
89 head_ += num_frames; in Write()
94 head_ = num_frames - overhead; in Write()
98 head_logical_ += num_frames; in Write()
101 void RingBuffer::Copy(int reader, float* destination, int num_frames) const { in Copy()
103 if (pos + num_frames <= size_) { in Copy()
105 num_channels_ * num_frames * sizeof(destination[0])); in Copy()
[all …]
Dsola_time_scaler.cc33 int num_frames) { in Correlate() argument
37 num_frames *= num_channels_; in Correlate()
38 while (num_frames-- > 0) { in Correlate()
50 virtual int Correlate(const float*, const float*, int num_frames) { in Correlate() argument
51 return num_frames * num_channels_; in Correlate()
212 int SolaTimeScaler::InjectSamples(float* buffer, int num_frames) { in InjectSamples() argument
216 num_frames = min(input_limit(), num_frames); in InjectSamples()
217 if (!num_frames) { in InjectSamples()
222 input_buffer_->Write(buffer, num_frames); in InjectSamples()
224 return num_frames; in InjectSamples()
[all …]
Dring_buffer.h60 void Copy(int reader, float* destination, int num_frames) const;
65 void Write(const float* samples, int num_frames);
85 float* GetPointer(int reader, int num_frames);
94 void MergeBack(int reader, const float* source, int num_frames);
Dsola_time_scaler.h60 int num_frames);
109 int InjectSamples(float* buffer, int num_frames);
115 int RetrieveSamples(float* buffer, int num_frames);