First of all in my program for cature and playback equipment configuration parameters are reference to arecord (aplay) source for writing, so parameters should not have what problem,
Then I test the "arecord parameter | aplay parameters" this test method, found that it is no almost no underrun phenomenon of (a) or occasionally, but this way is inter-process communication, symbols used in the pipe "|", my program no inter-process communication, only open threads,
Excuse me, does anyone know how to design the capture in a program, playback communication, if you can, give some reference code
CodePudding user response:
Problem solving and call snd_pcm_hw_params_set_period_size_near and snd_pcm_hw_params_set_buffer_size_near, pass the appropriate parametersCodePudding user response:
More to try and solve likelyCodePudding user response: