Sergei Steshenko wrote: > Понедельник, 4 января 2016, 18:45 +01:00 от Clemens Ladisch > <cladi...@googlemail.com>: > > Sergei Steshenko wrote: > > I have developed a piece of code (as LADSPA plugin) which among other > things multiplexes one of two input streams into output stream. > > > > Though switching worked, latency was several seconds long instead > fraction of a second. > > > > Because of the latency I suspected a problem with my code, but after > creating a special test audio files I've established that the multiplexing > happens fast - within my LADSPA host buffer length, as expected. And the > buffer length was 1024 samples @44100KHz. > > What is the buffer length of the device? > (see /proc/asound/card*/pcm0p/sub0/hw_params) > > "buffer_size: 262144", and 262144/48000 is about 5.46 seconds - feels about > right.
The audio device is configured by whatever program actually writes to it, probably your host. What is it? How is it configured? Regards, Clemens ------------------------------------------------------------------------------ _______________________________________________ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user