From: Irfan shaikh <irfan.shaikh@sasken.com>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: ALSA Underrun / Silence playback
Date: Mon, 5 Dec 2011 15:34:34 +0530 [thread overview]
Message-ID: <4EDC9732.1030108@sasken.com> (raw)
In-Reply-To: <4EDC9403.3080708@ladisch.de>
Hello Clemens,
I have used my threshold as boundary value {after calling
snd_pcm_sw_params_get_boundary() } also and checked the audio performance.
I was still getting UNDERRUN's (-32).
if (snd_pcm_sw_params_set_stop_threshold
(alsaParams->pcm_handle, alsaParams->p_swparams, threshold) < 0)
{
printf("Could not gete
snd_pcm_sw_params_get_boundary");
return NULL;
}
What's weird about this number?
--> I set my alsa buffer size as (512 period size and 16 periods)
As snd_pcm_sw_params_get_boundary(), returns boundary in frames.
I was not able to get how the boundry which i get (1572864000) is
more than the buffer size (512 X 16) which i have set.
Regards
Irfan
On 12/05/2011 03:20 PM, Clemens Ladisch wrote:
> Irfan shaikh wrote:
>> When i do get boundry, i get some weird value 1572864000.
> What's weird about this number?
>
>> Thus i tried to use alsa buffer size for threshold
> Use the boundary value.
>
>
> Regards,
> Clemens
>
next prev parent reply other threads:[~2011-12-05 10:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-05 6:40 ALSA Underrun / Silence playback Irfan shaikh
2011-12-05 9:50 ` Clemens Ladisch
2011-12-05 10:04 ` Irfan shaikh [this message]
2011-12-05 10:45 ` Clemens Ladisch
2011-12-05 11:56 ` Irfan shaikh
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=4EDC9732.1030108@sasken.com \
--to=irfan.shaikh@sasken.com \
--cc=alsa-devel@alsa-project.org \
--cc=clemens@ladisch.de \
/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