Home
last modified time | relevance | path

Searched refs:audio_area (Results 1 – 5 of 5) sorted by relevance

/external/adhd/cras/src/server/
Ddev_stream.c304 &rstream->audio_area->frames); in capture_copy_converted_to_stream()
305 num_frames = MIN(rstream->audio_area->frames - offset, in capture_copy_converted_to_stream()
309 rstream->audio_area->frames, offset); in capture_copy_converted_to_stream()
323 rstream->audio_area, &rstream->format, stream_samples); in capture_copy_converted_to_stream()
325 cras_audio_area_copy(rstream->audio_area, offset, in capture_copy_converted_to_stream()
376 &rstream->audio_area->frames); in dev_stream_capture()
378 rstream->audio_area, &rstream->format, stream_samples); in dev_stream_capture()
380 nread = cras_audio_area_copy(rstream->audio_area, offset, in dev_stream_capture()
Dcras_rstream.c98 stream->audio_area = in setup_shm_area()
100 cras_audio_area_config_channels(stream->audio_area, &stream->format); in setup_shm_area()
337 cras_audio_area_destroy(stream->audio_area); in cras_rstream_destroy()
Dcras_rstream.h80 struct cras_audio_area *audio_area; member
/external/adhd/cras/src/tests/
Diodev_unittest.cc78 static struct cras_audio_area* audio_area; variable
164 if (audio_area) { in ResetStubData()
165 free(audio_area); in ResetStubData()
166 audio_area = NULL; in ResetStubData()
493 size_t sz = sizeof(*audio_area) + sizeof(struct cras_channel_area) * 2; in get_buffer()
495 audio_area = (cras_audio_area*)calloc(1, sz); in get_buffer()
496 audio_area->frames = *num; in get_buffer()
497 audio_area->num_channels = 2; in get_buffer()
498 audio_area->channels[0].buf = audio_buffer; in get_buffer()
499 channel_area_set_channel(&audio_area->channels[0], CRAS_CH_FL); in get_buffer()
[all …]
Ddev_stream_unittest.cc176 rstream_.audio_area = stream_area; in SetUp()