Home
last modified time | relevance | path

Searched refs:frames_per_buffer (Results 1 – 25 of 78) sorted by relevance

1234

/external/chromium_org/content/renderer/media/
Dwebrtc_local_audio_source_provider_unittest.cc30 source_params_.frames_per_buffer() * source_params_.channels(); in SetUp()
78 source_provider_->provideInput(audio_data, sink_params_.frames_per_buffer()); in TEST_F()
83 source_params_.frames_per_buffer() * source_params_.channels(); in TEST_F()
90 source_params_.frames_per_buffer()); in TEST_F()
96 for (int i = sink_params_.frames_per_buffer(); in TEST_F()
97 i < source_params_.frames_per_buffer(); in TEST_F()
98 i += sink_params_.frames_per_buffer()) { in TEST_F()
101 sink_params_.frames_per_buffer()); in TEST_F()
110 source_params_.frames_per_buffer()); in TEST_F()
113 for (int i = 0; i < source_params_.frames_per_buffer(); in TEST_F()
[all …]
Dwebrtc_audio_renderer.cc150 int frames_per_buffer = hardware_buffer_size; in GetOptimalBufferSize() local
156 frames_per_buffer = sample_rate / 100; in GetOptimalBufferSize()
162 if (frames_per_buffer < 2 * frames_per_10ms) { in GetOptimalBufferSize()
167 frames_per_buffer = 2 * frames_per_10ms; in GetOptimalBufferSize()
172 DVLOG(1) << "Using sink output buffer size: " << frames_per_buffer; in GetOptimalBufferSize()
173 return frames_per_buffer; in GetOptimalBufferSize()
184 int frames_per_buffer) in WebRtcAudioRenderer() argument
197 frames_per_buffer, in WebRtcAudioRenderer()
206 frames_per_buffer, in WebRtcAudioRenderer()
257 const int frames_per_buffer = in Initialize() local
[all …]
Dwebrtc_local_audio_renderer.cc108 int frames_per_buffer) in WebRtcLocalAudioRenderer() argument
115 frames_per_buffer_(frames_per_buffer), in WebRtcLocalAudioRenderer()
294 2 * source_params_.frames_per_buffer(), in ReconfigureSink()
310 10 * params.frames_per_buffer() / sink_params_.frames_per_buffer() + 1; in ReconfigureSink()
312 params.channels(), sink_params_.frames_per_buffer(), blocks_of_buffers); in ReconfigureSink()
Dmedia_stream_audio_processor.cc484 if (!audio_processing_ && input_format.frames_per_buffer() < output_frames) { in InitializeCaptureFifo()
485 processing_frames = input_format.frames_per_buffer(); in InitializeCaptureFifo()
498 input_format.frames_per_buffer(), in InitializeCaptureFifo()
510 int sample_rate, int number_of_channels, int frames_per_buffer) { in InitializeRenderFifoIfNeeded() argument
515 render_format_.frames_per_buffer() == frames_per_buffer) { in InitializeRenderFifoIfNeeded()
525 frames_per_buffer); in InitializeRenderFifoIfNeeded()
530 frames_per_buffer, in InitializeRenderFifoIfNeeded()
Dwebaudio_capturer_source.cc58 new int16[params_.frames_per_buffer() * params_.channels()]); in setFormat()
61 kMaxNumberOfBuffersInFifo * params_.frames_per_buffer())); in setFormat()
110 int capture_frames = params_.frames_per_buffer(); in consumeAudio()
Dwebrtc_audio_renderer.h78 int frames_per_buffer); in NON_EXPORTED_BASE()
102 int frames_per_buffer() const { return sink_params_.frames_per_buffer(); } in NON_EXPORTED_BASE()
Dwebrtc_audio_capturer.cc156 device_info_.device.input.frames_per_buffer, in Initialize()
159 device_info_.device.matched_output.frames_per_buffer, in Initialize()
382 input_params.frames_per_buffer()) { in EnablePeerConnectionMode()
508 audio_processor_->InputFormat().frames_per_buffer()); in Capture()
581 !device_info_.device.matched_output.frames_per_buffer) in GetPairedOutputParameters()
587 device_info_.device.matched_output.frames_per_buffer; in GetPairedOutputParameters()
606 int hardware_buffer_size = device_info_.device.input.frames_per_buffer; in GetBufferSize()
Dwebrtc_local_audio_track_unittest.cc141 EXPECT_EQ(params_.frames_per_buffer(), number_of_frames); in OnData()
257 EXPECT_EQ(sink->audio_params().frames_per_buffer(), in TEST_F()
291 EXPECT_EQ(sink_1->audio_params().frames_per_buffer(), in TEST_F()
311 EXPECT_EQ(sink_1->audio_params().frames_per_buffer(), in TEST_F()
315 EXPECT_EQ(sink_2->audio_params().frames_per_buffer(), in TEST_F()
500 params.frames_per_buffer()), in TEST_F()
525 const int expected_buffer_size = params.frames_per_buffer(); in TEST_F()
532 EXPECT_EQ(expected_buffer_size, sink->audio_params().frames_per_buffer()); in TEST_F()
/external/chromium_org/media/audio/
Daudio_parameters.cc24 int frames_per_buffer) in AudioParameters() argument
29 frames_per_buffer_(frames_per_buffer), in AudioParameters()
36 int frames_per_buffer, int effects) in AudioParameters() argument
41 frames_per_buffer_(frames_per_buffer), in AudioParameters()
48 int bits_per_sample, int frames_per_buffer, in AudioParameters() argument
54 frames_per_buffer_(frames_per_buffer), in AudioParameters()
63 int bits_per_sample, int frames_per_buffer) { in Reset() argument
72 frames_per_buffer_ = frames_per_buffer; in Reset()
114 frames_per_buffer_ == other.frames_per_buffer() && in Equals()
Daudio_parameters.h59 int frames_per_buffer);
62 int frames_per_buffer, int effects);
65 int frames_per_buffer, int effects);
69 int frames_per_buffer);
95 int frames_per_buffer() const { return frames_per_buffer_; } in frames_per_buffer() function
123 return a.frames_per_buffer() < b.frames_per_buffer();
Dfake_audio_input_stream.cc72 params.frames_per_buffer()) / in FakeAudioInputStream()
77 (params.frames_per_buffer() * 1000) / params.sample_rate())), in FakeAudioInputStream()
80 params.frames_per_buffer() / in FakeAudioInputStream()
173 frames_elapsed_ += params_.frames_per_buffer(); in DoCallback()
Daudio_output_resampler.cc136 const int frames_per_buffer = in SetupFallbackParams() local
137 std::max(params_.frames_per_buffer(), kMinLowLatencyFrameSize); in SetupFallbackParams()
142 frames_per_buffer); in SetupFallbackParams()
225 params_.bits_per_sample(), params_.frames_per_buffer()); in OpenStream()
/external/chromium_org/content/public/common/
Dmedia_stream_request.h108 int frames_per_buffer);
134 : sample_rate(), channel_layout(), frames_per_buffer(), effects() { in AudioDeviceParameters()
138 int frames_per_buffer) in AudioDeviceParameters()
141 frames_per_buffer(frames_per_buffer), in AudioDeviceParameters()
157 int frames_per_buffer; member
/external/chromium_org/media/blink/
Dwebaudiosourceprovider_impl_unittest.cc170 wasp_impl_->provideInput(audio_data, params_.frames_per_buffer()); in TEST_F()
180 wasp_impl_->provideInput(audio_data, params_.frames_per_buffer()); in TEST_F()
188 wasp_impl_->provideInput(audio_data, params_.frames_per_buffer()); in TEST_F()
195 wasp_impl_->provideInput(audio_data, params_.frames_per_buffer()); in TEST_F()
205 wasp_impl_->provideInput(audio_data, params_.frames_per_buffer()); in TEST_F()
212 wasp_impl_->provideInput(audio_data, params_.frames_per_buffer()); in TEST_F()
229 wasp_impl_->provideInput(audio_data, params_.frames_per_buffer()); in TEST_F()
236 wasp_impl_->provideInput(audio_data, params_.frames_per_buffer()); in TEST_F()
/external/chromium_org/media/base/
Daudio_converter.cc28 : chunk_size_(input_params.frames_per_buffer()), in AudioConverter()
52 input_params.frames_per_buffer(); in AudioConverter()
78 if (input_params.frames_per_buffer() != output_params.frames_per_buffer()) { in AudioConverter()
79 DVLOG(1) << "Rebuffering from " << input_params.frames_per_buffer() in AudioConverter()
80 << " to " << output_params.frames_per_buffer(); in AudioConverter()
81 chunk_size_ = input_params.frames_per_buffer(); in AudioConverter()
Daudio_hardware_config.cc43 return output_params_.frames_per_buffer(); in GetOutputBufferSize()
110 std::ceil(twenty_ms_size / output_params_.frames_per_buffer()) * in GetHighLatencyBufferSize()
111 output_params_.frames_per_buffer(); in GetHighLatencyBufferSize()
129 return std::max(output_params_.frames_per_buffer(), high_latency_buffer_size); in GetHighLatencyBufferSize()
Daudio_converter_unittest.cc57 output_parameters_.frames_per_buffer()); in AudioConverterTest()
67 static_cast<double>(output_parameters_.frames_per_buffer())); in InitializeInputs()
216 (output_parameters.frames_per_buffer() * input_sample_rate / in TEST()
217 output_parameters.sample_rate()) / input_parameters.frames_per_buffer(); in TEST()
223 fill_count * input_parameters.frames_per_buffer() * in TEST()
233 output_parameters_.frames_per_buffer() / 2); in TEST_P()
/external/chromium_org/media/audio/alsa/
Dalsa_input.cc34 bytes_per_buffer_(params.frames_per_buffer() * in AlsaPcmInputStream()
39 params.frames_per_buffer() * base::Time::kMicrosecondsPerSecond / in AlsaPcmInputStream()
181 if (frames < params_.frames_per_buffer()) { in ReadAudio()
199 int num_buffers = frames / params_.frames_per_buffer(); in ReadAudio()
211 params_.frames_per_buffer()); in ReadAudio()
212 if (frames_read == params_.frames_per_buffer()) { in ReadAudio()
220 << frames_read << " vs. " << params_.frames_per_buffer() in ReadAudio()
/external/chromium_org/content/common/media/
Dmedia_param_traits.cc25 m->WriteInt(p.frames_per_buffer()); in Write()
34 frames_per_buffer, channels, effects; in Read() local
40 !m->ReadInt(iter, &frames_per_buffer) || in Read()
47 sample_rate, bits_per_sample, frames_per_buffer, effects); in Read()
/external/chromium_org/content/renderer/pepper/
Dpepper_platform_audio_output.cc24 int frames_per_buffer, in Create() argument
31 frames_per_buffer, in Create()
121 int frames_per_buffer, in Initialize() argument
137 frames_per_buffer); in Initialize()
Dpepper_platform_audio_input.cc30 int frames_per_buffer, in Create() argument
38 frames_per_buffer, in Create()
153 int frames_per_buffer, in Initialize() argument
177 frames_per_buffer); in Initialize()
Dpepper_media_stream_audio_track_host.cc148 base::CheckedNumeric<int32_t> frames_per_buffer = user_buffer_duration_; in InitBuffers() local
149 frames_per_buffer *= frame_rate; in InitBuffers()
150 frames_per_buffer /= base::Time::kMillisecondsPerSecond; in InitBuffers()
152 frames_per_buffer * bytes_per_frame_; in InitBuffers()
208 DCHECK_EQ(number_of_frames, audio_params_.frames_per_buffer()); in OnData()
Dpepper_platform_audio_output.h31 int frames_per_buffer,
67 int frames_per_buffer,
/external/chromium_org/media/audio/win/
Daudio_low_latency_input_win_unittest.cc180 frames_per_buffer_ = default_params_.frames_per_buffer(); in AudioInputStreamWrapper()
194 AudioInputStream* Create(int frames_per_buffer) { in Create() argument
195 frames_per_buffer_ = frames_per_buffer; in Create()
205 int frames_per_buffer() const { return frames_per_buffer_; } in frames_per_buffer() function in media::AudioInputStreamWrapper
385 uint32 bytes_per_packet = aisw.channels() * aisw.frames_per_buffer() * in TEST()
399 int frames_per_buffer_10ms = aisw.frames_per_buffer(); in TEST()
408 bytes_per_packet = aisw.channels() * aisw.frames_per_buffer() * in TEST()
424 bytes_per_packet = aisw.channels() * aisw.frames_per_buffer() * in TEST()
/external/chromium_org/content/browser/renderer_host/media/
Daudio_input_device_manager.cc214 input_params.frames_per_buffer = params.frames_per_buffer(); in OpenOnDeviceThread()
228 matched_output_params.frames_per_buffer = params.frames_per_buffer(); in OpenOnDeviceThread()

1234