Path: news.mathworks.com!not-for-mail
From: "Free " <free.claessens@student.kuleuven.be>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Simulink: playing and recording audio at the same time
Date: Tue, 3 Nov 2009 22:54:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <hcqcaa$cqh$1@fred.mathworks.com>
References: <hc7g90$fel$1@fred.mathworks.com>
Reply-To: "Free " <free.claessens@student.kuleuven.be>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257288842 13137 172.30.248.37 (3 Nov 2009 22:54:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 3 Nov 2009 22:54:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2062837
Xref: news.mathworks.com comp.soft-sys.matlab:582202


Finally I found the solution by myself after searching for more then a week. Matlab is using the open source library "portaudio" (http://www.portaudio.com/) for the "to/from audio devices". Originally this library is compiled for the linux "open sound system" (OSS) driver while I was using ALSA. So you have to download the source code for portaudio from the website, compile it and then copy the library into your matlab install directory (matlab_install_dir/bin/glnx86).

Procedure:
- Download and unpack portaudio source code
- In portaudio dir type: 
./configure && make
make install
(The driver you are using will automatically be found)
- Copy libportaudio.so to matlab_install_dir/bin/glnx86