From: =?iso-8859-1?q?M=E5ns_Rullg=E5rd?= Subject: Re: Question regarding period/buffer and error handling Date: Fri, 28 May 2004 10:22:54 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <40B6970F.90507@atr.jp> <40B6F1A0.4080704@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: > Måns Rullgård wrote: > >> >>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); >> > Well, I precisely want to avoid writing to a temporary file :) If the files are small they will probably never hit the physical disk. Of course, your sounds might be longer than that. -- 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