Configuring ASIO in MATLAB 2013a?

4 visualizaciones (últimos 30 días)
Debraj
Debraj el 22 de Abr. de 2013
Respondida: Darel el 13 de Nov. de 2013
I had posted a question a while ago on how I could reduce latency on MATLAB.
Anyway, I upgraded to MATLAB 2013a with hopes of using ASIO drivers alongside my external audio interface (Roland UA55 Quad Capture) in MATLAB to have low latency and decent sound quality. How do I go about doing this?

Respuestas (1)

Darel
Darel el 13 de Nov. de 2013
Debraj, ASIO support is built into DSP System Toolbox. To select ASIO, go to MATLAB preferences and from there to the DSP tab. Select ASIO as your Audio Hardware API. You can use dsp.AudioRecorder for audio input and dsp.AudioPlayer for audio output. To minimize latency, here's a good starting point: set SamplesPerFrame and Buffersize to N and QueueDuration to 2*(N+1)/Fs where Fs is your sample rate. Then try setting N to smaller and smaller powers of two until you begin to see overrun or underrun warnings on the MATLAB desktop. Back up to the smallest value that does not have warnings. That will give you your smallest latency. MathWorks development has been able to get down to 25 milliseconds and occasionally lower, with N=256 or N=512. All of these capabilities are also available as Simulink blocks in DSP System Toolbox.

Categorías

Más información sobre Audio I/O and Waveform Generation en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by