/AliOS-Things-master/components/a2sa/src/framework/ |
A D | sound_pcm.c | 8 #define PCM_LOCK(pcm) aos_mutex_lock(&pcm->mutex, AOS_WAIT_FOREVER) argument 9 #define PCM_UNLOCK(pcm) aos_mutex_unlock(&pcm->mutex) argument 125 free(*pcm); in aos_pcm_open() 126 *pcm = NULL; in aos_pcm_open() 141 PCM_LOCK(pcm); in aos_pcm_prepare() 163 PCM_LOCK(pcm); in aos_pcm_start() 186 PCM_LOCK(pcm); in aos_pcm_wait() 209 PCM_LOCK(pcm); in aos_pcm_stop() 292 free(pcm); in aos_pcm_close() 641 if(!pcm) { in aos_pcm_bytes_to_frames() [all …]
|
/AliOS-Things-master/components/uvoice/audio/hal/linux/ |
A D | uvoice_pcm.c | 36 config = &pcm->config; in alsa_pcm_open() 38 if (pcm->dir == PCM_OUT) in alsa_pcm_open() 325 if (!pcm) { in uvoice_set_path() 335 if (!pcm) { in uvoice_dev_mute() 345 if (!pcm) { in uvoice_pcm_setup() 371 if (!pcm) { in uvoice_pcm_open() 402 if (!pcm) { in uvoice_pcm_read() 426 if (!pcm) { in uvoice_pcm_write() 457 if (!pcm) { in uvoice_pcm_flush() 482 if (!pcm) { in uvoice_pcm_close() [all …]
|
/AliOS-Things-master/components/uvoice/audio/hal/haas100/ |
A D | uvoice_pcm.c | 40 int uvoice_pcm_setup(struct pcm_device *pcm) in uvoice_pcm_setup() argument 45 int uvoice_pcm_open(struct pcm_device *pcm) in uvoice_pcm_open() argument 49 if (!pcm) { in uvoice_pcm_open() 54 switch (pcm->config.format) { in uvoice_pcm_open() 72 if (pcm->dir == PCM_OUT) { in uvoice_pcm_open() 84 } else if (pcm->dir == PCM_IN) { in uvoice_pcm_open() 104 if (pcm->dir == PCM_IN && cap_pcm) { in uvoice_pcm_read() 114 if (pcm->dir == PCM_OUT && pb_pcm) { in uvoice_pcm_write() 131 int uvoice_pcm_flush(struct pcm_device *pcm) in uvoice_pcm_flush() argument 138 if (pb_pcm && (pcm->dir == PCM_OUT)) { in uvoice_pcm_close() [all …]
|
/AliOS-Things-master/components/a2sa/include/ |
A D | sound_pcm.h | 194 int aos_pcm_prepare(aos_pcm_t *pcm); 203 int aos_pcm_start(aos_pcm_t *pcm); 213 int aos_pcm_wait(aos_pcm_t *pcm, int timeout); 222 int aos_pcm_stop(aos_pcm_t *pcm); 231 int aos_pcm_drain(aos_pcm_t *pcm); 240 int aos_pcm_pause(aos_pcm_t *pcm, int enable); 249 int aos_pcm_close(aos_pcm_t *pcm); 258 int aos_pcm_recover(aos_pcm_t *pcm); 286 int aos_pcm_hw_params(aos_pcm_t *pcm, aos_pcm_hw_params_t *p); 383 int aos_pcm_suspend(aos_pcm_t *pcm); [all …]
|
/AliOS-Things-master/components/a2sa/src/driver/core/ |
A D | audio.c | 36 if(!pcm || !pcm->ops) { in audio_pcm_open() 40 ret = pcm->ops->open(pcm->private_data); in audio_pcm_open() 64 if(!pcm && !pcm->ops) { in audio_pcm_close() 68 ret = pcm->ops->close(pcm->private_data); in audio_pcm_close() 100 if(!pcm && !pcm->ops) { in audio_pcm_ioctl() 115 ret = pcm->ops->start(pcm->private_data); in audio_pcm_ioctl() 130 ret = pcm->ops->stop(pcm->private_data); in audio_pcm_ioctl() 133 ret = pcm->ops->drain(pcm->private_data); in audio_pcm_ioctl() 139 ret = pcm->ops->suspend(pcm->private_data); in audio_pcm_ioctl() 142 ret = pcm->ops->resume(pcm->private_data); in audio_pcm_ioctl() [all …]
|
/AliOS-Things-master/components/uvoice/internal/ |
A D | uvoice_pcm.h | 26 int uvoice_set_path(struct pcm_device *pcm, snd_device_t device); 46 int uvoice_dev_mute(struct pcm_device *pcm, snd_device_t device, int mute); 62 int uvoice_pcm_setup(struct pcm_device *pcm); 71 int uvoice_pcm_open(struct pcm_device *pcm); 78 int uvoice_pcm_read(struct pcm_device *pcm, uint8_t *buffer, int nbytes); 87 int uvoice_pcm_write(struct pcm_device *pcm, uint8_t *buffer, int nbytes); 89 int uvoice_pcm_silence(struct pcm_device *pcm); 94 int uvoice_pcm_flush(struct pcm_device *pcm); 104 int uvoice_pcm_close(struct pcm_device *pcm);
|
/AliOS-Things-master/components/uvoice/audio/hal/haas200/ |
A D | uvoice_pcm.c | 18 int uvoice_set_path(struct pcm_device *pcm, snd_device_t device) in uvoice_set_path() argument 23 int uvoice_dev_mute(struct pcm_device *pcm, snd_device_t device, int mute) in uvoice_dev_mute() argument 33 int uvoice_pcm_setup(struct pcm_device *pcm) in uvoice_pcm_setup() argument 38 int uvoice_pcm_open(struct pcm_device *pcm) in uvoice_pcm_open() argument 43 int uvoice_pcm_read(struct pcm_device *pcm, uint8_t *buffer, int nbytes) in uvoice_pcm_read() argument 50 int uvoice_pcm_write(struct pcm_device *pcm, uint8_t *buffer, int nbytes) in uvoice_pcm_write() argument 61 int uvoice_pcm_silence(struct pcm_device *pcm) in uvoice_pcm_silence() argument 66 int uvoice_pcm_flush(struct pcm_device *pcm) in uvoice_pcm_flush() argument 71 int uvoice_pcm_close(struct pcm_device *pcm) in uvoice_pcm_close() argument
|
/AliOS-Things-master/components/amp_adapter/include/ |
A D | aos_pcm.h | 84 int aos_set_path(aos_pcm_device_t *pcm, aos_snd_device_t device); 94 int aos_dev_mute(aos_pcm_device_t *pcm, aos_snd_device_t device, int mute); 104 int aos_pcm_setup(aos_pcm_device_t *pcm); 113 int aos_pcm_open(aos_pcm_device_t *pcm); 120 int aos_pcm_read(aos_pcm_device_t *pcm, unsigned char *buffer, int nbytes); 129 int aos_pcm_write(aos_pcm_device_t *pcm, unsigned char *buffer, int nbytes); 138 int aos_pcm_flush(aos_pcm_device_t *pcm); 148 int aos_pcm_close(aos_pcm_device_t *pcm);
|
/AliOS-Things-master/components/uvoice/audio/ |
A D | audio_stream.c | 159 config = &out->pcm.config; in out_stream_period_duration() 183 struct pcm_device *pcm; in out_stream_configure() local 229 pcm = &out->pcm; in out_stream_configure() 230 config = &pcm->config; in out_stream_configure() 232 pcm->dir = PCM_OUT; in out_stream_configure() 590 struct pcm_device *pcm; in in_stream_configure() local 634 pcm = &in->pcm; in in_stream_configure() 635 pcm->dir = PCM_IN; in in_stream_configure() 685 struct pcm_device *pcm; in in_stream_start() local 697 pcm = &in->pcm; in in_stream_start() [all …]
|
A D | audio_process.c | 35 equalizer_process(&out->pcm.config, buffer, nbytes); in audio_out_process() 53 config = &out->pcm.config; in audio_out_process_init() 182 config = &in->pcm.config; in audio_in_process_init()
|
A D | audio_stream.h | 36 struct pcm_device pcm; member 46 struct pcm_device pcm; member
|
A D | audio_mixer.c | 48 uvoice_set_path(&adev->out->pcm, device); in device_select() 58 uvoice_set_path(&adev->in->pcm, device); in device_select()
|
A D | audio_aec.c | 82 config = &in->pcm.config; in audio_aec_init() 91 aec->echo_buffer_size = period_samples_to_bytes(&in->pcm.config); in audio_aec_init()
|
/AliOS-Things-master/components/a2sa/example/ |
A D | sound_example_wav.c | 66 aos_pcm_t *pcm; in play_sample() local 72 ret = aos_pcm_open(&pcm, "default", AOS_PCM_STREAM_PLAYBACK, 0); in play_sample() 92 aos_pcm_set_params(pcm, format, AOS_PCM_ACCESS_RW_INTERLEAVED, channels, rate, 0, 0); in play_sample() 93 aos_pcm_prepare(pcm); in play_sample() 103 aos_pcm_close(pcm); in play_sample() 107 aos_pcm_start(pcm); in play_sample() 111 if (aos_pcm_writei(pcm, buffer, num_read/frame_size) < 0) { in play_sample() 119 aos_pcm_stop(pcm); in play_sample() 120 aos_pcm_close(pcm); in play_sample()
|
/AliOS-Things-master/components/uvoice/codec/ |
A D | ogg_decoder.c | 264 float **pcm; in ogg_decoder_process() local 276 &pcm)) > 0) { in ogg_decoder_process() 289 float *mono = pcm[i]; in ogg_decoder_process()
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/wifi_app/audio_dec/ |
A D | audio_dec.h | 31 …typedef int (*audio_dec_pcm_handler_cb)(uint8_t *pcm, uint32_t pcm_size, audio_dec_pcm_arg_t *pcm_…
|
/AliOS-Things-master/components/a2sa/ |
A D | README.md | 27 │ └── sound_pcm.c # 声卡pcm设备驱动的实现 30 │ └── sound_pcm.h # 声卡pcm设备驱动,例如录音、播放等。
|
/AliOS-Things-master/components/drivers/external_device/sh1106/ |
A D | README.md | 28 │ ├── icon.h # 声卡pcm设备驱动,例如录音、播放等。
|
/AliOS-Things-master/components/SDL2/src/audio/alsa/ |
A D | SDL_alsa_audio.c | 47 static int (*ALSA_snd_pcm_close) (snd_pcm_t * pcm); 82 (snd_pcm_t *pcm, snd_pcm_hw_params_t *, snd_pcm_uframes_t *);
|
/AliOS-Things-master/solutions/audio_demo/ |
A D | README.md | 10 > * 小程序:开始/停止录音,录音文件路径/data/rec.pcm
|