From: =?iso-8859-1?q?M=E5ns_Rullg=E5rd?= Subject: Re: [alsa-dev]Question regarding period/buffer and error handling Date: Fri, 28 May 2004 09:02:59 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <40B6970F.90507@atr.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org Cournapeau David writes: > Hi there, > > For my research, I need to use audio with matlab under linux, and > sound support of matlab is kind of... well, crappy (basically, it > is opening the /dev/audio file and write to it; on my computer, it > doesn't seem to work). That's why I am thinking about using a > wrapper to alsa. If you are playing fairly short pieces of sound you might be able to use this function I wrote some time ago: function playsnd(y,fs,bits) wf = tempname; ws = warning; warning off wavwrite(y, fs, bits, wf); warning ws wf = [wf '.wav']; [s,o] = unix(sprintf('aplay %s', wf)); delete(wf); -- Måns Rullgård mru@kth.se ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click