필터 지우기
필터 지우기

ASIO audio driver with MATLAB 2016a

조회 수: 8 (최근 30일)
Axel Ahrens
Axel Ahrens 2016년 7월 27일
답변: Gloria Helena Munera 2017년 2월 16일
Hi everybody,
I want to use ASIO drivers with the DSP system toolbox in MATLAB2016a, however, it seems that the option in the preferences as in 2015 does not exist anymore. I use 'audioDeviceWriter' and one of the options is 'Driver' but it seems that I need the 'Audio System Toolbox' (not for free?!). Is there a way to use ASIO drivers with MATLAB2016a without the need of external toolboxes like Psychtoolbox?
Best, Axel

채택된 답변

Puneet Rana
Puneet Rana 2016년 7월 27일
Axel,
You can continue using ASIO with DSP System Toolbox in R2016a by changing the driver using MATLAB command-line as described in this doc page. For example, the following code will set ASIO driver:
>> setpref('dsp','portaudioHostApi',3)
Going forward, please note that dsp.AudioPlayer and dsp.AudioRecorder are on their path to deprecation and are superceded by the much improved audioDeviceWriter and audioDeviceReader objects.
  댓글 수: 2
Axel Ahrens
Axel Ahrens 2016년 7월 28일
편집: Axel Ahrens 2016년 7월 28일
Hi Puneet,
thanks a lot for your answer. I found my mistake! The device name of the soundcard changes when using ASIO. I was using the device name from the windows direct sound driver and got an error message that I did interpret in a wrong way. However, I can now create an audioDeviceWriter object with ASIO drivers, but Im not allowed to use it. This is the error message I get:
Error using audioDeviceWriter/setup
Unable to checkout a license for the Audio System Toolbox. The license is needed to use non-default values of driver, bit depth, or channel
mapping.
Error in audioDeviceWriter/setupImpl
Error in audioDeviceWriter/play
So it seems that I need to buy the AudioSystemToolbox just to use ASIO drivers?
Best, Axel
Puneet Rana
Puneet Rana 2016년 7월 29일
Axel,
You can still use ASIO with dsp.AudioPlayer. Instead of changing the driver under MATLAB preferences, you would need to use the setpref() command I mentioned in my answer.
However, in order to use ASIO with audioDeviceWriter, you would need Audio System Toolbox.
HTH,
Puneet

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Gloria Helena Munera
Gloria Helena Munera 2017년 2월 16일
How to send an audio file to different channels of an audio interface Motu ultralite mk3 in matlab 2016a on windows
I used this code
X = uigetfile; [Aw, fs] = audioread (x); Player = audioplayer (aw, fs, 24); Play (player)
Every time you play audioplayer (aw, fs, 24, id);
Error using audioplayer (line 223) Could not find the specified device
Error in pru (line 10) Player = audioplayer (aw, fs, 24.2);
Use info = dspAudioDeviceInfo to know my card ID
Please help! With examples

카테고리

Help CenterFile Exchange에서 Using audio files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by