All of lore.kernel.org
 help / color / mirror / Atom feed
* Playing always at half of the rate of recording.
@ 2002-11-17 14:44 超 李
  2002-11-19 22:07 ` Florian Bomers
  0 siblings, 1 reply; 2+ messages in thread
From: 超 李 @ 2002-11-17 14:44 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-19 22:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-17 14:44 Playing always at half of the rate of recording 超 李
2002-11-19 22:07 ` Florian Bomers

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.