From: Cournapeau David <cournape@atr.jp>
To: alsa-devel@lists.sourceforge.net
Subject: Re: Question regarding period/buffer and error handling
Date: Fri, 28 May 2004 17:00:32 +0900 [thread overview]
Message-ID: <40B6F1A0.4080704@atr.jp> (raw)
In-Reply-To: <yw1x1xl5rq3g.fsf@kth.se>
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 :)
But right now, my function seems to work, I just used UNIX signals to
close cleanly the audio device, it was much simpler than what I thought
at first.
Cheers,
David
-------------------------------------------------------
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_id149&alloc_id66&op=click
next prev parent reply other threads:[~2004-05-28 8:00 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 ` Cournapeau David [this message]
2004-05-28 8:22 ` Question " Måns Rullgård
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=40B6F1A0.4080704@atr.jp \
--to=cournape@atr.jp \
--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.