Home
last modified time | relevance | path

Searched refs:bytes_per_frame (Results 1 – 11 of 11) sorted by relevance

/openbmc/qemu/audio/
H A Ddsound_template.h101 if ((p1p && *p1p && (*blen1p % info->bytes_per_frame)) || in glue()
102 (p2p && *p2p && (*blen2p % info->bytes_per_frame))) { in glue()
251 if (bc.dwBufferBytes % hw->info.bytes_per_frame) { in dsound_init_in()
254 bc.dwBufferBytes, hw->info.bytes_per_frame in dsound_init_in()
258 hw->samples = bc.dwBufferBytes / hw->info.bytes_per_frame; in dsound_init_in()
H A Daudio.c321 info->bytes_per_frame = as->nchannels * mul; in audio_pcm_init_info()
322 info->bytes_per_second = info->freq * info->bytes_per_frame; in audio_pcm_init_info()
333 memset(buf, 0x00, len * info->bytes_per_frame); in audio_pcm_info_clear_buf()
337 memset(buf, 0x80, len * info->bytes_per_frame); in audio_pcm_info_clear_buf()
529 uint8_t *src = advance(pcm_buf, conv * hw->info.bytes_per_frame); in audio_pcm_hw_conv_in()
591 frames_out_max = MIN(buf_len / sw->info.bytes_per_frame, in audio_pcm_sw_read()
602 return total_out * sw->info.bytes_per_frame; in audio_pcm_sw_read()
650 INT_MAX) / hw->info.bytes_per_frame; in audio_pcm_hw_get_live_out()
660 uint8_t *dst = advance(pcm_buf, clipped * hw->info.bytes_per_frame); in audio_pcm_hw_clip_out()
732 fe_max = MIN(buf_len / sw->info.bytes_per_frame in audio_pcm_sw_write()
[all...]
H A Dwavaudio.c43 assert(bytes % hw->info.bytes_per_frame == 0); in wav_write_out()
50 wav->total_samples += bytes / hw->info.bytes_per_frame; in wav_write_out()
138 uint32_t datalen = wav->total_samples * hw->info.bytes_per_frame; in wav_fini_out()
H A Dossaudio.c517 if (obt.nfrags * obt.fragsize % hw->info.bytes_per_frame) { in oss_init_out()
519 obt.nfrags * obt.fragsize, hw->info.bytes_per_frame); in oss_init_out()
522 hw->samples = (obt.nfrags * obt.fragsize) / hw->info.bytes_per_frame; in oss_init_out()
526 hw->size_emul = hw->samples * hw->info.bytes_per_frame; in oss_init_out()
646 if (obt.nfrags * obt.fragsize % hw->info.bytes_per_frame) { in oss_init_in()
648 obt.nfrags * obt.fragsize, hw->info.bytes_per_frame); in oss_init_in()
651 hw->samples = (obt.nfrags * obt.fragsize) / hw->info.bytes_per_frame; in oss_init_in()
H A Dalsaaudio.c601 alsa_free = avail * hw->info.bytes_per_frame; in alsa_buffer_get_free()
603 generic_in_use = hw->samples * hw->info.bytes_per_frame - generic_free; in alsa_buffer_get_free()
621 size_t len_frames = len / hw->info.bytes_per_frame; in alsa_buffer_get_free()
667 pos += written * hw->info.bytes_per_frame; in alsa_write()
821 alsa->handle, dst, len / hw->info.bytes_per_frame); in alsa_init_in()
847 pos += nread * hw->info.bytes_per_frame; in alsa_read()
848 len -= nread * hw->info.bytes_per_frame; in alsa_read()
H A Dnoaudio.c92 audio_pcm_info_clear_buf(&hw->info, buf, bytes / hw->info.bytes_per_frame); in no_read()
H A Dcoreaudio.m326 pending_frames = hw->pending_emul / hw->info.bytes_per_frame;
335 len = frameCount * hw->info.bytes_per_frame;
362 .mBytesPerFrame = core->hw.info.bytes_per_frame,
363 .mBytesPerPacket = core->hw.info.bytes_per_frame,
H A Ddbusaudio.c83 vo->buf_size = hw->samples * hw->info.bytes_per_frame; in dbus_get_buffer_out()
147 hw->info.bytes_per_frame, in dbus_init_out_listener()
273 hw->info.bytes_per_frame, in dbus_init_in_listener()
H A Dsdlaudio.c247 len / hw->info.bytes_per_frame); in sdl_callback_out()
429 hw->size_emul = hw->samples * hw->info.bytes_per_frame; in sdl_init_in()
H A Ddsoundaudio.c334 len1 = blen1 / hw->info.bytes_per_frame; in dsound_clear_sample()
335 len2 = blen2 / hw->info.bytes_per_frame; in dsound_clear_sample()
H A Daudio_int.h59 int bytes_per_frame;
51 int bytes_per_frame; global() member