最終更新:2021-01-13 (水) 13:49:32 (14d)  

snd_pcm_readi
Top / snd_pcm_readi

Read interleaved frames from a PCM.

https://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m.html#ga4c2c7bd26cf221268d59dc3bbeb9c048

snd_pcm_sframes_t snd_pcm_readi	(	snd_pcm_t * 	pcm,
void * 	buffer,
snd_pcm_uframes_t 	size 
)	

戻り値

  • a positive number of frames actually read otherwise a negative error code

メモ

  • If the blocking behaviour was selected and it is running, then routine waits until all requested frames are filled. The returned number of frames can be less only if a signal or underrun occurred.
  • If the non-blocking behaviour is selected, then routine doesn't wait at all.
  • The function is thread-safe when built with the proper option.

インターリーブ

  • 1フレーム中にLRのサンプルがインターリーブされている

関連

  • snd_pcm_mmap_readi?

参考