From: "Måns Rullgård" <mru@kth.se>
To: alsa-devel@lists.sourceforge.net
Subject: Re: Question regarding period/buffer and error handling
Date: Fri, 28 May 2004 10:22:54 +0200 [thread overview]
Message-ID: <yw1xiseh0xlt.fsf@kth.se> (raw)
In-Reply-To: 40B6F1A0.4080704@atr.jp
Cournapeau David <cournape@atr.jp> 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
next prev parent reply other threads:[~2004-05-28 8:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-28 1:34 [alsa-dev]Question regarding period/buffer and error handling Cournapeau David
2004-05-28 7:02 ` Måns Rullgård
2004-05-28 8:00 ` Question " Cournapeau David
2004-05-28 8:22 ` Måns Rullgård [this message]
2004-05-28 15:52 ` Clemens Ladisch
2004-05-31 1:04 ` Cournapeau David
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yw1xiseh0xlt.fsf@kth.se \
--to=mru@kth.se \
--cc=alsa-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.