Home
last modified time | relevance | path

Searched refs:kBufferFrames (Results 1 – 3 of 3) sorted by relevance

/external/adhd/cras/src/tests/
Dmix_unittest.cc16 static const size_t kBufferFrames = 8192; variable
18 static const size_t kNumSamples = kBufferFrames * kNumChannels;
30 mix_buffer_ = (int16_t*)malloc(kBufferFrames * 4); in SetUp()
32 calloc(1, kBufferFrames * 4 + sizeof(cras_audio_shm_header))); in SetUp()
34 for (size_t i = 0; i < kBufferFrames * 2; i++) { in SetUp()
39 compare_buffer_ = (int16_t*)malloc(kBufferFrames * 4); in SetUp()
49 for (size_t i = 0; i < kBufferFrames; i++) { in _SetupBuffer()
54 for (size_t i = kBufferFrames; i < kBufferFrames * 2; i++) { in _SetupBuffer()
63 for (size_t i = 0; i < kBufferFrames * 2; i += 2) { in TestScaleStride()
77 (uint8_t*)src_buffer_, kBufferFrames, 4, 2, in TestScaleStride()
[all …]
Ddev_stream_unittest.cc33 static const int kBufferFrames = 1024; variable
127 rstream_.buffer_frames = kBufferFrames; in SetUp()
128 rstream_.cb_threshold = kBufferFrames / 2; in SetUp()
171 area->frames = kBufferFrames; in SetUp()
205 used_size = kBufferFrames * cras_shm_frame_bytes(shm); in SetupShm()
213 for (size_t i = 0; i < kBufferFrames * 2; i++) in SetupShm()
231 devstr.conv_buffer_size_frames = kBufferFrames * 2; in SetUpFmtConv()
246 int16_t cap_buf[kBufferFrames * 2];
267 SetUpFmtConv(44100, 32000, kBufferFrames / 4); in TEST_F()
272 out_fmt.frame_rate, (kBufferFrames / 4), in_fmt.frame_rate); in TEST_F()
[all …]
Dloopback_iodev_unittest.cc27 static const unsigned int kBufferFrames = 16384; variable
29 static const unsigned int kBufferSize = kBufferFrames * kFrameBytes;