Home
last modified time | relevance | path

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

/device/generic/car/emulator/audio/driver/
Daudio_vbuffer.c29 int audio_vbuffer_init(audio_vbuffer_t *audio_vbuffer, size_t frame_count, in audio_vbuffer_init() argument
31 if (!audio_vbuffer) { in audio_vbuffer_init()
34 audio_vbuffer->frame_size = frame_size; in audio_vbuffer_init()
35 audio_vbuffer->frame_count = frame_count; in audio_vbuffer_init()
37 audio_vbuffer->data = calloc(bytes, 1); in audio_vbuffer_init()
38 if (!audio_vbuffer->data) { in audio_vbuffer_init()
41 audio_vbuffer->head = 0; in audio_vbuffer_init()
42 audio_vbuffer->tail = 0; in audio_vbuffer_init()
43 audio_vbuffer->live = 0; in audio_vbuffer_init()
44 pthread_mutex_init(&audio_vbuffer->lock, (const pthread_mutexattr_t *)NULL); in audio_vbuffer_init()
[all …]
Daudio_vbuffer.h22 typedef struct audio_vbuffer { struct
32 int audio_vbuffer_init(audio_vbuffer_t *audio_vbuffer, size_t frame_count, argument
35 int audio_vbuffer_destroy(audio_vbuffer_t *audio_vbuffer);
37 int audio_vbuffer_live(audio_vbuffer_t *audio_vbuffer);
39 int audio_vbuffer_dead(audio_vbuffer_t *audio_vbuffer);
41 size_t audio_vbuffer_write(audio_vbuffer_t *audio_vbuffer, const void *buffer,
44 size_t audio_vbuffer_read(audio_vbuffer_t *audio_vbuffer, void *buffer,
DAndroid.bp26 "audio_vbuffer.c",
/device/linaro/dragonboard/audio/
Daudio_hw.c72 typedef struct audio_vbuffer { struct
82 static int audio_vbuffer_init (audio_vbuffer_t * audio_vbuffer, size_t frame_count, in audio_vbuffer_init() argument
84 if (!audio_vbuffer) { in audio_vbuffer_init()
87 audio_vbuffer->frame_size = frame_size; in audio_vbuffer_init()
88 audio_vbuffer->frame_count = frame_count; in audio_vbuffer_init()
90 audio_vbuffer->data = calloc(bytes, 1); in audio_vbuffer_init()
91 if (!audio_vbuffer->data) { in audio_vbuffer_init()
94 audio_vbuffer->head = 0; in audio_vbuffer_init()
95 audio_vbuffer->tail = 0; in audio_vbuffer_init()
96 audio_vbuffer->live = 0; in audio_vbuffer_init()
[all …]
/device/google/cuttlefish/guest/hals/audio/
Daudio_hw.c75 typedef struct audio_vbuffer { struct
85 static int audio_vbuffer_init (audio_vbuffer_t * audio_vbuffer, size_t frame_count, in audio_vbuffer_init() argument
87 if (!audio_vbuffer) { in audio_vbuffer_init()
90 audio_vbuffer->frame_size = frame_size; in audio_vbuffer_init()
91 audio_vbuffer->frame_count = frame_count; in audio_vbuffer_init()
93 audio_vbuffer->data = calloc(bytes, 1); in audio_vbuffer_init()
94 if (!audio_vbuffer->data) { in audio_vbuffer_init()
97 audio_vbuffer->head = 0; in audio_vbuffer_init()
98 audio_vbuffer->tail = 0; in audio_vbuffer_init()
99 audio_vbuffer->live = 0; in audio_vbuffer_init()
[all …]