From: Kris Modrak <u9514439@anu.edu.au>
To: alsa-devel@lists.sourceforge.net
Subject: Rate Conversion
Date: Thu, 27 Jun 2002 18:29:36 +1000 [thread overview]
Message-ID: <3D1ACCF0.5F1AC04A@anu.edu.au> (raw)
I am writing a PCM application and wish to play a .wav file that has a
sampling rate of 8kHz on a hardware setup that only supports sampling
frequencies of 44.1 or 48kHz.
Does anyone know how to implement this?
I have tried setting up a rate plugin in my .asoundrc file
pcm.r8 {
type rate # Rate PCM
slave slave_rate8000Hz # Slave name
}
pcm_slave.slave_rate8000Hz {
pcm "hw:0,0"
rate 8000
}
But when using this device I am unable to set the rate to 8000 using
snd_pcm_hw_params_set_rate_near ();
I tried using the r8 device with aplay (version 0.9.0beta12) and get the
following error
> aplay -Dr8 s1.wav
Playing WAVE 's1.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
aplay: set_params:717: Broken configuration for this PCM: no
configurations available
I know it is possible to play the file because it works when I play it
from a netscape window.
Thanks in advance
Kris Modrak
-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
next reply other threads:[~2002-06-27 8:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-27 8:29 Kris Modrak [this message]
2002-06-27 14:11 ` Rate Conversion Jaroslav Kysela
2002-06-28 3:30 ` Kris Modrak
2002-06-28 11:28 ` Paul Davis
2002-07-01 2:19 ` Kris Modrak
2002-07-01 11:51 ` Paul Davis
[not found] <200206281126.g5SBQLTk004595@anu.edu.au>
2002-07-02 0:43 ` Kris Modrak
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=3D1ACCF0.5F1AC04A@anu.edu.au \
--to=u9514439@anu.edu.au \
--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.