Home
last modified time | relevance | path

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

/AliOS-Things-master/components/uvoice/audio/hal/linux/
A Duvoice_pcm.c18 snd_pcm_t *pcm_handle; in alsa_pcm_open() local
236 snd_pcm_close(pcm_handle); in alsa_pcm_open()
243 snd_pcm_t *pcm_handle; in alsa_pcm_drain() local
246 if (!pcm_handle) { in alsa_pcm_drain()
256 snd_pcm_t *pcm_handle; in alsa_pcm_close() local
259 if (!pcm_handle) { in alsa_pcm_close()
269 snd_pcm_t *pcm_handle; in alsa_pcm_read() local
274 if (!pcm_handle) { in alsa_pcm_read()
293 snd_pcm_t *pcm_handle; in alsa_pcm_write() local
298 if (!pcm_handle) { in alsa_pcm_write()
[all …]
/AliOS-Things-master/components/SDL2/src/audio/alios/
A DSDL_alios_audio.c104 snd_pcm_t *pcm_handle = NULL; in AOS_OpenDevice() local
118 …status = snd_pcm_open(&pcm_handle, "hw", iscapture ? SND_PCM_STREAM_CAPTURE : SND_PCM_STREAM_PLAYB… in AOS_OpenDevice()
123 this->hidden->pcm_handle = pcm_handle; in AOS_OpenDevice()
173 snd_pcm_set_params(this->hidden->pcm_handle, in AOS_OpenDevice()
180 snd_pcm_prepare(this->hidden->pcm_handle); in AOS_OpenDevice()
210 snd_pcm_start(this->hidden->pcm_handle); in ALSA_PlayDevice()
213 int status = snd_pcm_writei(this->hidden->pcm_handle, sample_buf, frames_left); in ALSA_PlayDevice()
236 if (this->hidden->pcm_handle) { in AOS_CloseDevice()
243 snd_pcm_drop(this->hidden->pcm_handle); in AOS_CloseDevice()
244 snd_pcm_close(this->hidden->pcm_handle); in AOS_CloseDevice()
A DSDL_alios_audio.h21 snd_pcm_t *pcm_handle; member
/AliOS-Things-master/components/SDL2/src/audio/alsa/
A DSDL_alsa_audio.c411 status = ALSA_snd_pcm_readi(this->hidden->pcm_handle, in ALSA_CaptureFromDevice()
443 ALSA_snd_pcm_reset(this->hidden->pcm_handle); in ALSA_FlushCapture()
449 if (this->hidden->pcm_handle) { in ALSA_CloseDevice()
456 ALSA_snd_pcm_close(this->hidden->pcm_handle); in ALSA_CloseDevice()
522 snd_pcm_t *pcm_handle = NULL; in ALSA_OpenDevice() local
544 status = ALSA_snd_pcm_open(&pcm_handle, in ALSA_OpenDevice()
554 this->hidden->pcm_handle = pcm_handle; in ALSA_OpenDevice()
558 status = ALSA_snd_pcm_hw_params_any(pcm_handle, hwparams); in ALSA_OpenDevice()
630 chmap = ALSA_snd_pcm_get_chmap(pcm_handle); in ALSA_OpenDevice()
687 status = ALSA_snd_pcm_sw_params(pcm_handle, swparams); in ALSA_OpenDevice()
[all …]
A DSDL_alsa_audio.h36 snd_pcm_t *pcm_handle; member

Completed in 9 milliseconds