High Latency with ASIO driver (Behringer UCA222, Audio System Toolbox)
8 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Puneet Rana
2017-5-12
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 个评论
Puneet Rana
2017-5-17
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio I/O and Waveform Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!