I have audio conferencing device which has a mic and speaker. Both mic and speaker having same sampling rate set by snd_pcm_hw_params_set_rate_near()
say 8000 Hz. Do I need to set period size and number of periods to be same for both (for two such devices communicate each other) ?
Or can I choose a different period/period size for speaker than the one configured for mic ? How do I decide on which period and period size to use ?
I am using snd_pcm_hw_params_set_period_size_near()
and snd_pcm_hw_params_set_periods_near()
APIs to set period size and period for both speaker and mic.
(I am new to ALSA).