Home
last modified time | relevance | path

Searched refs:size_emul (Results 1 – 7 of 7) sorted by relevance

/openbmc/qemu/audio/
H A Dossaudio.c409 *size = hw->size_emul - hw->pos_emul; in oss_get_buffer_out()
422 hw->pos_emul = (hw->pos_emul + size) % hw->size_emul; in oss_put_buffer_out()
440 size_t to_copy = MIN(len, hw->size_emul - hw->pos_emul); in oss_write()
443 hw->pos_emul = (hw->pos_emul + to_copy) % hw->size_emul; in oss_write()
482 err = munmap(hw->buf_emul, hw->size_emul); in oss_fini_out()
485 hw->buf_emul, hw->size_emul); in oss_fini_out()
538 hw->size_emul = hw->samples * hw->info.bytes_per_frame; in oss_init_out()
541 hw->size_emul, in oss_init_out()
549 hw->size_emul); in oss_init_out()
568 err = munmap(hw->buf_emul, hw->size_emul); in oss_init_out()
[all …]
H A Dsdlaudio.c231 hw->size_emul); in sdl_callback_out()
232 assert(start < hw->size_emul); in sdl_callback_out()
235 hw->size_emul - start); in sdl_callback_out()
277 while (hw->pending_emul < hw->size_emul && len) { in sdl_callback_in()
278 size_t read_len = MIN(len, MIN(hw->size_emul - hw->pos_emul, in sdl_callback_in()
279 hw->size_emul - hw->pending_emul)); in sdl_callback_in()
284 hw->pos_emul = (hw->pos_emul + read_len) % hw->size_emul; in sdl_callback_in()
437 hw->size_emul = hw->samples * hw->info.bytes_per_frame; in sdl_init_in()
438 hw->buf_emul = g_malloc(hw->size_emul); in sdl_init_in()
H A Ddsoundaudio.c332 hw->size_emul, in dsound_clear_sample()
449 return audio_ring_dist(ppos, hw->pos_emul, hw->size_emul); in dsound_buffer_get_free()
461 req_size = MIN(*size, hw->size_emul - hw->pos_emul); in dsound_get_buffer_out()
486 hw->pos_emul = (hw->pos_emul + len) % hw->size_emul; in dsound_put_buffer_out()
559 req_size = audio_ring_dist(rpos, hw->pos_emul, hw->size_emul); in dsound_get_buffer_in()
560 req_size = MIN(*size, MIN(req_size, hw->size_emul - hw->pos_emul)); in dsound_get_buffer_in()
589 hw->pos_emul = (hw->pos_emul + len) % hw->size_emul; in dsound_put_buffer_in()
H A Daudio.c1414 hw->buf_emul = g_malloc(hw->size_emul); in audio_generic_run_buffer_in()
1418 while (hw->pending_emul < hw->size_emul) { in audio_generic_run_buffer_in()
1436 assert(start < hw->size_emul); in audio_generic_get_buffer_in()
1439 *size = MIN(*size, hw->size_emul - start); in audio_generic_get_buffer_in()
1452 return hw->size_emul - hw->pending_emul; in audio_generic_buffer_get_free()
1464 assert(start < hw->size_emul); in audio_generic_run_buffer_out()
1481 hw->buf_emul = g_malloc(hw->size_emul); in audio_generic_get_buffer_out()
1485 *size = MIN(hw->size_emul - hw->pending_emul, in audio_generic_get_buffer_out()
1486 hw->size_emul - hw->pos_emul); in audio_generic_get_buffer_out()
1493 size + hw->pending_emul <= hw->size_emul); in audio_generic_put_buffer_out()
[all …]
H A Daudio_int.h76 size_t pos_emul, pending_emul, size_emul; member
98 size_t pos_emul, pending_emul, size_emul; member
H A Dcoreaudio.m339 start = audio_ring_posb(hw->pos_emul, hw->pending_emul, hw->size_emul);
340 assert(start < hw->size_emul);
343 hw->size_emul - start);
H A Ddsound_template.h257 hw->size_emul = bc.dwBufferBytes; in dsound_init_in()