Direct control of sound-card via Matlab in 64-bit Windows: Is this possible?

6 ビュー (過去 30 日間)
Daudi
Daudi 2011 年 5 月 3 日
We have an ASIO-supported sound card (ASUS Xonar D2) on a desktop running on Windows 7 (64-bit). We would like to instal Matlab (2010b or later) on this desktop to play sounds in a context where timing is crucial. However, before this I would like to know if there are suitable MATLAB-soundcard-interface programs available (for example playrec or pa-wavplay) which would operate in this 64-bit environment. Many thanks

採用された回答

Daniel Shub
Daniel Shub 2011 年 5 月 3 日
Not sure this qualifies as an answer. I have been sticking with 32-bit MATLAB (Linux) because I am pretty sure there is no freely available portaudio (essentially what ASIO is running on) code for 64-bit MATLAB. Psychtoolbox, which I think has the best documented and most actively developed portaudio implementation, does not support 64-bit MATLAB (although they are trying to get full 64-bit support by the end of 2011). They suggest running MATLAB in 32-bit mode on a 64-bit machine ( http://psychtoolbox.org/wikka.php?wakka=SystemRequirements).

その他の回答 (1 件)

Nick Haddad
Nick Haddad 2012 年 5 月 10 日
For R2012a the DSP System Toolbox added native support for ASIO sound cards.
If you have DSP System Toolbox you can use the dsp.AudioPlayer system object to stream multi-channel audio to an ASIO based sound card.
By playing with this object's QueueDuration and BufferSize properties you can also achieve fairly low latency playback, depending upon the capabilities of your sound card.
This is supported on both 64-bit Windows and 32-bit Windows systems.
See the R2012a Release notes for DSP System Toolbox for more information.
  1 件のコメント
Daniel Shub
Daniel Shub 2012 年 5 月 10 日
This is good news, but I am not sure what it means. How would one recreate
load handel
sound(y, Fs)
with dsp.AudioPlayer and asio support?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeUsing audio files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by