/external/qemu/audio/ |
D | esdaudio.c | 76 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 g_free (esd->pcm_buf); in qesd_init_out() 288 esd->pcm_buf = NULL; in qesd_init_out() 311 g_free (esd->pcm_buf); in qesd_fini_out() 312 esd->pcm_buf = NULL; in qesd_fini_out() [all …]
|
D | paaudio.c | 50 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 g_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 …]
|
D | wavaudio.c | 40 void *pcm_buf; member 84 dst = advance (wav->pcm_buf, rpos << hw->info.shift); in wav_out_run() 154 wav->pcm_buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift); in wav_out_init() 155 if (!wav->pcm_buf) { in wav_out_init() 170 g_free (wav->pcm_buf); in wav_out_init() 171 wav->pcm_buf = NULL; in wav_out_init() 207 g_free (wav->pcm_buf); in wav_out_fini() 208 wav->pcm_buf = NULL; in wav_out_fini() 234 void* pcm_buf; member 323 wav->pcm_buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift); in wav_in_init() [all …]
|
D | ossaudio.c | 47 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 g_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 …]
|
D | alsaaudio.c | 119 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 g_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 …]
|
D | audio.h | 117 int AUD_write (SWVoiceOut *sw, void *pcm_buf, int size); 138 int AUD_read (SWVoiceIn *sw, void *pcm_buf, int size);
|
D | audio_int.h | 226 int audio_pcm_hw_clip_out (HWVoiceOut *hw, void *pcm_buf,
|
D | audio.c | 963 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/ |
D | SDL_nto_audio.c | 260 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()
|
D | SDL_nto_audio.h | 48 Uint8* pcm_buf; member 62 #define pcm_buf (this->hidden->pcm_buf) macro
|
/external/libopus/src/ |
D | opus_encoder.c | 941 VARDECL(opus_val16, pcm_buf); in opus_encode_native() 1426 ALLOC(pcm_buf, (total_buffer+frame_size)*st->channels, opus_val16); in opus_encode_native() 1428 pcm_buf[i] = st->delay_buffer[(st->encoder_buffer-total_buffer)*st->channels+i]; in opus_encode_native() 1443 …hp_cutoff(pcm, cutoff_Hz, &pcm_buf[total_buffer*st->channels], st->hp_mem, frame_size, st->channel… in opus_encode_native() 1445 …dc_reject(pcm, 3, &pcm_buf[total_buffer*st->channels], st->hp_mem, frame_size, st->channels, st->F… in opus_encode_native() 1614 pcm_silk = pcm_buf+total_buffer*st->channels; in opus_encode_native() 1617 pcm_silk[i] = FLOAT2INT16(pcm_buf[total_buffer*st->channels + i]); in opus_encode_native() 1737 st->delay_buffer[i] = pcm_buf[(frame_size+total_buffer-st->encoder_buffer)*st->channels+i]; in opus_encode_native() 1742 gain_fade(pcm_buf, pcm_buf, in opus_encode_native() 1761 stereo_fade(pcm_buf, pcm_buf, g1, g2, celt_mode->overlap, in opus_encode_native() [all …]
|
/external/chromium_org/third_party/opus/src/src/ |
D | opus_encoder.c | 941 VARDECL(opus_val16, pcm_buf); in opus_encode_native() 1426 ALLOC(pcm_buf, (total_buffer+frame_size)*st->channels, opus_val16); in opus_encode_native() 1428 pcm_buf[i] = st->delay_buffer[(st->encoder_buffer-total_buffer)*st->channels+i]; in opus_encode_native() 1443 …hp_cutoff(pcm, cutoff_Hz, &pcm_buf[total_buffer*st->channels], st->hp_mem, frame_size, st->channel… in opus_encode_native() 1445 …dc_reject(pcm, 3, &pcm_buf[total_buffer*st->channels], st->hp_mem, frame_size, st->channels, st->F… in opus_encode_native() 1614 pcm_silk = pcm_buf+total_buffer*st->channels; in opus_encode_native() 1617 pcm_silk[i] = FLOAT2INT16(pcm_buf[total_buffer*st->channels + i]); in opus_encode_native() 1737 st->delay_buffer[i] = pcm_buf[(frame_size+total_buffer-st->encoder_buffer)*st->channels+i]; in opus_encode_native() 1742 gain_fade(pcm_buf, pcm_buf, in opus_encode_native() 1761 stereo_fade(pcm_buf, pcm_buf, g1, g2, celt_mode->overlap, in opus_encode_native() [all …]
|