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: Mon, 01 Jul 2002 12:19:00 +1000 [thread overview]
Message-ID: <3D1FBC14.359A637@anu.edu.au> (raw)
In-Reply-To: E17NttO-0001Ov-00@usw-sf-list1.sourceforge.net
Paul Davis wrote:
>
> >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.
Apart from rates or 44.1 or 48kHz I was unable to find a rate/period
size combination that I was able to use with plughw:0,0.
snd_pcm_hw_params_set_period_size () failed for every period size I
tried (64, 128, 256, 512, 1024, 2048 and 4096) when I had the rate set
to 8, 16 or 32 kHz.
I managed to set the following combinations of hardware parameters:
-22050Hz with period sizes of 2048, 1024, 512, 256, 128 and 64
-11025Hz with period sizes of 1024, 512, 256, 128 and 64
but when I ran my application I encountered the following error
ALSA lib pcm_hw.c:380:(snd_pcm_hw_start) SNDRV_PCM_IOCTL_START failed:
Broken pipe
Does anyone have any further suggestions of things that I could try or
why this rate conversion isn't working for me? I am using ALSA
0.9.0beta12 with a Hammerfall Light (RME Digi9636) soundcard.
Kris Modrak
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
next prev parent reply other threads:[~2002-07-01 2:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=3D1FBC14.359A637@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 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.