From: Florian Bomers <Florian.Bomers@sun.com>
To: "è¶ æ" <flyingwalter@msn.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Playing always at half of the rate of recording.
Date: Tue, 19 Nov 2002 14:07:13 -0800 [thread overview]
Message-ID: <3DDAB611.E2DEF97B@sun.com> (raw)
In-Reply-To: F9hQkQiijdhvs3qJSyl00011c5a@hotmail.com
are you sure that sample size, number of channels and sample rate is the same for playback
and record?
Florian
"è¶ æ" wrote:
>
> Hi All,
> I'm using alsa library to write an application that play and record audio
> at the same time. I openned the default pcm device twice, and set params for
> them, nonblock, RW_INTERLEAVED, S16_LE format, 8000Hz, and 1 channel, the
> only difference is using SND_PCM_STREAM_CAPTURE for recording, and using
> SND_PCM_STREAM_PLAYBACK for playing.
> But the bytes played are always near half of the recorded, and the sound I
> heard is slowed comparing with its normal speed.
> My enviroment are:
> RedHat 7.3 / alsa 0.9.0 rc5 / linux kernel 2.4.18-3
> sound card module: via82xx
>
> How can I solve this?
> Thanks!
>
> Walter
>
> _________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> http://join.msn.com/?page=features/virus
>
> -------------------------------------------------------
> This sf.net email is sponsored by: To learn the basics of securing
> your web site with SSL, click here to get a FREE TRIAL of a Thawte
> Server Certificate: http://www.gothawte.com/rd524.html
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel
--
Florian Bomers
Java Sound
Java Software/Sun Microsystems, Inc.
http://java.sun.com/products/java-media/sound/
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
prev parent reply other threads:[~2002-11-19 22:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-17 14:44 Playing always at half of the rate of recording 超 李
2002-11-19 22:07 ` Florian Bomers [this message]
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=3DDAB611.E2DEF97B@sun.com \
--to=florian.bomers@sun.com \
--cc=alsa-devel@lists.sourceforge.net \
--cc=flyingwalter@msn.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox