From: Kris Modrak <u9514439@anu.edu.au>
To: Paul Davis <pbd@op.net>
Cc: Jaroslav Kysela <perex@suse.cz>,
"alsa-devel@lists.sourceforge.net"
<alsa-devel@lists.sourceforge.net>
Subject: Re: Rate Conversion
Date: Tue, 02 Jul 2002 10:43:44 +1000 [thread overview]
Message-ID: <3D20F740.962F19F4@anu.edu.au> (raw)
In-Reply-To: 200206281126.g5SBQLTk004595@anu.edu.au
Paul Davis wrote:
>
> >> You don't need to do this. Use the 'plughw' device which should do all
> >> conversions from you.
> >
> >I am a little confused about your advice. I am not sure how to access
> >the 'plughw' device from my application.
>
> snd_pcm_open (&handle, "plughw:N,M", ...)
>
> where N and M are the card number and subdevice number. Preferably,
> this is a string supplied by the user, not hard coded into the application.
>
> >I am not sure of how I should be setting up my PCM devices. How do I
> >tell them to convert, say, 8kHz audio data to 44.1kHz audio data so my
> >hardware can play it at the correct speed?
>
> just as in the few token API examples. using
> snd_pcm_hw_params_*(). there is no difference setting the parameters
> no matter what "type" of PCM device you are using.
If use the virtual plughw:0,0 device and set the rate to 8kHz, at what
rate is my actual hardware device set to? Where are these settings made
and how are they decided?
Do I need to, or is it possible to, tell my soundcard to operate at
44.1kHz?
Kris Modrak
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
next parent reply other threads:[~2002-07-02 0:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200206281126.g5SBQLTk004595@anu.edu.au>
2002-07-02 0:43 ` Kris Modrak [this message]
2002-06-27 8:29 Rate Conversion Kris Modrak
2002-06-27 14:11 ` 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
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=3D20F740.962F19F4@anu.edu.au \
--to=u9514439@anu.edu.au \
--cc=alsa-devel@lists.sourceforge.net \
--cc=pbd@op.net \
--cc=perex@suse.cz \
/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