Searched refs:conv_buffer (Results 1 – 3 of 3) sorted by relevance
/external/adhd/cras/src/server/ |
D | dev_stream.c | 123 out->conv_buffer = byte_buffer_create(buf_bytes); in dev_stream_create() 153 byte_buffer_destroy(&dev_stream->conv_buffer); in dev_stream_destroy() 215 dev_stream->conv_buffer->bytes, &read_frames, in dev_stream_mix() 217 src = dev_stream->conv_buffer->bytes; in dev_stream_mix() 258 buffer = buf_write_pointer_size(dev_stream->conv_buffer, in capture_with_fmt_conv() 270 buf_increment_write(dev_stream->conv_buffer, in capture_with_fmt_conv() 306 buf_queued(dev_stream->conv_buffer) / frame_bytes); in capture_copy_converted_to_stream() 313 dev_stream->conv_buffer, &write_frames); in capture_copy_converted_to_stream() 329 buf_increment_read(dev_stream->conv_buffer, in capture_copy_converted_to_stream() 456 conv_buf_level = buf_queued(dev_stream->conv_buffer) / format_bytes; in dev_stream_capture_avail() [all …]
|
D | dev_stream.h | 41 struct byte_buffer *conv_buffer; member
|
/external/adhd/cras/src/tests/ |
D | dev_stream_unittest.cc | 159 devstr.conv_buffer = NULL; in SetUp() 229 devstr.conv_buffer = in SetUpFmtConv() 237 devstr.conv_area->channels[0].buf = (uint8_t*)(devstr.conv_buffer->bytes); in SetUpFmtConv() 240 (uint8_t*)(devstr.conv_buffer->bytes + 1); in SetUpFmtConv() 277 EXPECT_EQ(devstr.conv_buffer->bytes, conv_frames_call.out_buf); in TEST_F() 291 byte_buffer_destroy(&devstr.conv_buffer); in TEST_F() 310 EXPECT_EQ(devstr.conv_buffer->bytes, conv_frames_call.out_buf); in TEST_F() 326 byte_buffer_destroy(&devstr.conv_buffer); in TEST_F() 339 EXPECT_NE(static_cast<byte_buffer*>(NULL), dev_stream->conv_buffer); in TEST_F() 381 EXPECT_NE(static_cast<byte_buffer*>(NULL), dev_stream->conv_buffer); in TEST_F() [all …]
|