Cournapeau David <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]
-------------------------------------------------------
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
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel