diff options
author | Dylan Reid <dgreid@chromium.org> | 2014-06-15 16:24:22 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-07-03 12:09:39 +0000 |
commit | 13e91bcc10ddc4181a3f7ae67982f1ba5d8ebe75 (patch) | |
tree | 4238d221f28a387299aa1d9ef2f6b788f1afe009 /cras/src/tests/audio_thread_unittest.cc | |
parent | 5b2923bb7adb24c05eb37a7736a38328bacf3d0e (diff) | |
download | adhd-13e91bcc10ddc4181a3f7ae67982f1ba5d8ebe75.tar.gz |
CRAS: audio_thread - DSP capture buffer in place.
Instead of making a copy of the captured samples to DSP them before
mixing. DSP them directly in the buffer they are received, then mix
them into the stream's buffer.
BUG=none
TEST=record audio with vocaroo.com
Change-Id: Ie3f7d6cad930384c2242ccf0799e561c33aefdc0
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/204518
Tested-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
Diffstat (limited to 'cras/src/tests/audio_thread_unittest.cc')
-rw-r--r-- | cras/src/tests/audio_thread_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cras/src/tests/audio_thread_unittest.cc b/cras/src/tests/audio_thread_unittest.cc index 064a61c2..93f1bfcd 100644 --- a/cras/src/tests/audio_thread_unittest.cc +++ b/cras/src/tests/audio_thread_unittest.cc @@ -621,7 +621,7 @@ TEST_F(ReadStreamSuite, PossiblyReadWithoutPipeline) { rc = unified_io(thread, &ts); EXPECT_EQ(0, rc); - EXPECT_EQ(3, cras_dsp_get_pipeline_called); + EXPECT_EQ(2, cras_dsp_get_pipeline_called); EXPECT_EQ(0, cras_dsp_put_pipeline_called); EXPECT_EQ(0, cras_dsp_pipeline_get_source_buffer_called); EXPECT_EQ(0, cras_dsp_pipeline_get_sink_buffer_called); @@ -652,8 +652,8 @@ TEST_F(ReadStreamSuite, PossiblyReadWithPipeline) { rc = unified_io(thread, &ts); EXPECT_EQ(0, rc); - EXPECT_EQ(3, cras_dsp_get_pipeline_called); - EXPECT_EQ(3, cras_dsp_put_pipeline_called); + EXPECT_EQ(2, cras_dsp_get_pipeline_called); + EXPECT_EQ(2, cras_dsp_put_pipeline_called); EXPECT_EQ(1, cras_dsp_pipeline_get_delay_called); EXPECT_EQ(1, cras_dsp_pipeline_apply_called); EXPECT_EQ(cb_threshold_, cras_dsp_pipeline_apply_sample_count); |