From: Clemens Ladisch <clemens@ladisch.de>
To: Alfs Kurmis <kallipygos@inbox.lv>
Cc: alsa-devel@alsa-project.org
Subject: Re: using ALSA one call
Date: Wed, 11 Feb 2009 09:55:00 +0100 [thread overview]
Message-ID: <49929264.1060503@ladisch.de> (raw)
In-Reply-To: <1234306055.499204078ce73@mail.inbox.lv>
Alfs Kurmis wrote:
> As given here
> http://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m.html#g6aa164ed37308d66bcc079f5cd265a09
> latency required overall latency in us (0 = optimum latency for players)
> i have try to set optimum latency = 0;
That documentation is wrong; 0 is not allowed. Just use 0.5 s, or some
larger value.
> But why i can not play my wave on notebook sound device "hw:0,0" ??
Because the "hw" device goes straight to the hardware and disallows
any conversion of sample rate/format.
Use "default", or something like "default:0" to select a specific card.
> snd_pcm_set_params(handle, SND_PCM_FORMAT_S16_LE, SND_PCM_ACCESS_RW_INTERLEAVED,
> channelz, samplerate , 0, 500000)
... and setting soft_resample to 0 disallows resampling in any case.
HTH
Clemens
prev parent reply other threads:[~2009-02-11 8:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-10 12:30 using ALSA one call kallipygos
2009-02-10 15:04 ` Clemens Ladisch
2009-02-10 22:47 ` Alfs Kurmis
2009-02-11 8:55 ` Clemens Ladisch [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=49929264.1060503@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=kallipygos@inbox.lv \
/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