Home
last modified time | relevance | path

Searched refs:pcm_buf (Results 1 – 10 of 10) sorted by relevance

/external/qemu/audio/
Dwavaudio.c41 void *pcm_buf; member
85 dst = advance (wav->pcm_buf, rpos << hw->info.shift); in wav_out_run()
152 wav->pcm_buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift); in wav_out_init()
153 if (!wav->pcm_buf) { in wav_out_init()
168 qemu_free (wav->pcm_buf); in wav_out_init()
169 wav->pcm_buf = NULL; in wav_out_init()
201 qemu_free (wav->pcm_buf); in wav_out_fini()
202 wav->pcm_buf = NULL; in wav_out_fini()
228 void* pcm_buf; member
317 wav->pcm_buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift); in wav_in_init()
[all …]
Dpaaudio.c50 void *pcm_buf; member
61 void *pcm_buf; member
128 hw->clip (pa->pcm_buf, src, chunk); in qpa_thread_out()
130 if (FF(pa_simple_write) (pa->s, pa->pcm_buf, in qpa_thread_out()
221 void *buf = advance (pa->pcm_buf, wpos); in qpa_thread_in()
356 pa->pcm_buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift); in qpa_init_out()
357 if (!pa->pcm_buf) { in qpa_init_out()
370 qemu_free (pa->pcm_buf); in qpa_init_out()
371 pa->pcm_buf = NULL; in qpa_init_out()
410 pa->pcm_buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift); in qpa_init_in()
[all …]
Desdaudio.c76 void *pcm_buf; member
87 void *pcm_buf; member
155 hw->clip (esd->pcm_buf, src, chunk); in qesd_thread_out()
158 written = write (esd->fd, esd->pcm_buf, chunk << hw->info.shift); in qesd_thread_out()
260 esd->pcm_buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift); in qesd_init_out()
261 if (!esd->pcm_buf) { in qesd_init_out()
287 qemu_free (esd->pcm_buf); in qesd_init_out()
288 esd->pcm_buf = NULL; in qesd_init_out()
311 qemu_free (esd->pcm_buf); in qesd_fini_out()
312 esd->pcm_buf = NULL; in qesd_fini_out()
[all …]
Dossaudio.c47 void *pcm_buf; member
58 void *pcm_buf; member
398 void *pcm = advance (oss->pcm_buf, oss->wpos << hw->info.shift); in oss_write_pending()
477 decr = audio_pcm_hw_clip_out (hw, oss->pcm_buf, decr, oss->pending); in oss_run_out()
492 if (oss->pcm_buf) { in oss_fini_out()
494 err = munmap (oss->pcm_buf, hw->samples << hw->info.shift); in oss_fini_out()
497 oss->pcm_buf, hw->samples << hw->info.shift); in oss_fini_out()
501 qemu_free (oss->pcm_buf); in oss_fini_out()
503 oss->pcm_buf = NULL; in oss_fini_out()
553 oss->pcm_buf = mmap ( in oss_init_out()
[all …]
Dalsaaudio.c119 void *pcm_buf; member
127 void *pcm_buf; member
789 char *src = advance (alsa->pcm_buf, alsa->wpos << hw->info.shift); in alsa_write_pending()
858 decr = audio_pcm_hw_clip_out (hw, alsa->pcm_buf, decr, alsa->pending); in alsa_run_out()
871 if (alsa->pcm_buf) { in alsa_fini_out()
872 qemu_free (alsa->pcm_buf); in alsa_fini_out()
873 alsa->pcm_buf = NULL; in alsa_fini_out()
912 alsa->pcm_buf = audio_calloc (AUDIO_FUNC, obt.samples, 1 << hw->info.shift); in alsa_init_out()
913 if (!alsa->pcm_buf) { in alsa_init_out()
1017 alsa->pcm_buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift); in alsa_init_in()
[all …]
Daudio.h117 int AUD_write (SWVoiceOut *sw, void *pcm_buf, int size);
138 int AUD_read (SWVoiceIn *sw, void *pcm_buf, int size);
Daudio_int.h226 int audio_pcm_hw_clip_out (HWVoiceOut *hw, void *pcm_buf,
Daudio.c963 int audio_pcm_hw_clip_out (HWVoiceOut *hw, void *pcm_buf, in audio_pcm_hw_clip_out() argument
972 uint8_t *dst = advance (pcm_buf, hw->rpos << hw->info.shift); in audio_pcm_hw_clip_out()
/external/qemu/distrib/sdl-1.2.15/src/audio/nto/
DSDL_nto_audio.c260 pcmbuffer = pcm_buf; in NTO_PlayAudio()
264 written = snd_pcm_plugin_write(audio_handle, pcm_buf, towrite); in NTO_PlayAudio()
322 return pcm_buf; in NTO_GetAudioBuf()
357 if (pcm_buf != NULL) in NTO_OpenAudio()
359 SDL_FreeAudioMem(pcm_buf); in NTO_OpenAudio()
360 pcm_buf = NULL; in NTO_OpenAudio()
477 pcm_buf = (Uint8*)SDL_AllocAudioMem(pcm_len); in NTO_OpenAudio()
478 if (pcm_buf == NULL) in NTO_OpenAudio()
483 SDL_memset(pcm_buf, spec->silence, pcm_len); in NTO_OpenAudio()
DSDL_nto_audio.h48 Uint8* pcm_buf; member
62 #define pcm_buf (this->hidden->pcm_buf) macro