Home
last modified time | relevance | path

Searched refs:frames_left (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/SDL2/src/audio/alios/
A DSDL_alios_audio.c203 snd_pcm_uframes_t frames_left = ((snd_pcm_uframes_t) this->spec.samples); in ALSA_PlayDevice() local
206 this->hidden->swizzle_func(this, this->hidden->mixbuf, frames_left); in ALSA_PlayDevice()
212 while ( frames_left > 0 && SDL_AtomicGet(&this->enabled) ) { in ALSA_PlayDevice()
213 int status = snd_pcm_writei(this->hidden->pcm_handle, sample_buf, frames_left); in ALSA_PlayDevice()
216 frames_left -= status; in ALSA_PlayDevice()
/AliOS-Things-master/components/SDL2/src/audio/alsa/
A DSDL_alsa_audio.c355 this->hidden->swizzle_func(this, this->hidden->mixbuf, frames_left); in ALSA_PlayDevice()
357 while ( frames_left > 0 && SDL_AtomicGet(&this->enabled) ) { in ALSA_PlayDevice()
359 sample_buf, frames_left); in ALSA_PlayDevice()
381 Uint32 delay = (frames_left / 2 * 1000) / this->spec.freq; in ALSA_PlayDevice()
386 frames_left -= status; in ALSA_PlayDevice()
403 snd_pcm_uframes_t frames_left = total_frames; in ALSA_CaptureFromDevice() local
408 while ( frames_left > 0 && SDL_AtomicGet(&this->enabled) ) { in ALSA_CaptureFromDevice()
412 sample_buf, frames_left); in ALSA_CaptureFromDevice()
432 frames_left -= status; in ALSA_CaptureFromDevice()
435 this->hidden->swizzle_func(this, buffer, total_frames - frames_left); in ALSA_CaptureFromDevice()
[all …]

Completed in 6 milliseconds