High Latency with ASIO driver (Behringer UCA222, Audio System Toolbox)
8 views (last 30 days)
Show older comments
I am trying to use the Audio System Toolbox with ASIO driver for a low latency audio processing. I’m using a Behringer UCA222 Stereo-Input Stereo-Output USB-Soundcard and ASIO4All driver. For testing the latency of the System connected the Output and the Input Ports of the soundcard in a ring and I created a small Simulink modell, which outputs a Sine Wave of 1000 Hz. I get a smaller latency with the ASIO driver than with the DirectSound-Driver, however the latency is with about 190 msec much to high.
Similar research was done by Marc Corless and Arvind Ananthan (two mathworks engineers) in “PC-Based Prototyping of Audio Apllications using Model-Based-Design”. They got latencys of only 16.375 msec at 48 kHz and a Buffer Size of 128 Samples.
The examples in the picture are generated using 48 kHz and a Buffer of 1024 Samples.
Maybe anyone can help and find a reason why the latency of my system is that high.
0 Comments
Answers (1)
Puneet Rana
on 12 May 2017
What is the frame size of the input that goes into your Audio Device Writer block? What is the SamplesPerFrame used in Audio Device Reader block? What are the buffer size settings in the ASIO4ALL panel? You need to make sure that all three of them match in order to have optimal latency.
2 Comments
Puneet Rana
on 17 May 2017
Can you retry the experiment with the Sine Wave block from DSP System Toolbox dspsrcs4 library for the input signal to Audio Device Writer block? Set the SamplesPerFrame parameter of the Sine Wave block to 128 to match your system.
See Also
Categories
Find more on Audio I/O and Waveform Generation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!