All of lore.kernel.org
 help / color / mirror / Atom feed
From: stan <ghjeold_i_mwee@cox.net>
To: Gustavo da Silva Serra <gustavo.serra@tet.com.br>
Cc: alsa-devel@alsa-project.org
Subject: Re: Still have choppy audio using 1.0.17
Date: Mon, 14 Jul 2008 17:50:26 -0700	[thread overview]
Message-ID: <487BF452.2090301@cox.net> (raw)
In-Reply-To: <487B9379.5030200@tet.com.br>

Gustavo da Silva Serra wrote:
> I have discovered something else. Choppy audio occurs when 
> snd_pcm_playback_silence, in pcm_lib.c, will silence the same period 
> than the capture pointer is pointing at. I am printing this variables 
> "ofs" in snd_pcm_playback_silence and what is returned from 
> snd_card_loopback_pointer when the substream is capture.
> 
> How snd_pcm_playback_silence is supposed to work? Must it silence the 
> next period from the playback pointer? How is ensured that this 
> situation (ofs == capture pointer) does not happen with sound cards?
> 
> Thanks ANY help... any...
> 
The way the API docs describe it the silence function 
fills the play buffer with a set amount of silence when 
the buffer has fewer than threshold frames to play. 
So, if your playback is running close to that 
threshold, it will be continuously injecting chunks of 
silence into the stream.  That would certainly sound 
choppy.  From the docs it sounds like the silence is 
always injected into the existing stream at the current 
pointer.

Note:  this is just from reading the docs.  I haven't 
actually used this.

  reply	other threads:[~2008-07-15  0:50 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-16 20:04 Still have choppy audio using 1.0.17 Gustavo da Silva Serra
2008-06-18 18:24 ` Gustavo da Silva Serra
2008-06-18 19:44   ` Gustavo da Silva Serra
2008-06-19 13:01     ` Gustavo da Silva Serra
2008-06-20 19:07       ` Gustavo da Silva Serra
2008-06-25 11:24       ` Gustavo da Silva Serra
2008-06-25 16:06         ` Takashi Iwai
2008-06-25 18:34           ` Gustavo da Silva Serra
2008-07-01 18:28           ` Gustavo da Silva Serra
2008-07-04 12:40             ` Gustavo da Silva Serra
2008-07-14 17:57               ` Gustavo da Silva Serra
2008-07-15  0:50                 ` stan [this message]
2008-07-15 11:56                   ` Gustavo da Silva Serra
2008-07-15 18:40                     ` Gustavo da Silva Serra
2008-07-15 21:31                       ` stan
2008-07-16 14:19                         ` Gustavo da Silva Serra
2008-07-16 15:30                           ` Takashi Iwai
2008-07-16 15:43                             ` Gustavo da Silva Serra

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=487BF452.2090301@cox.net \
    --to=ghjeold_i_mwee@cox.net \
    --cc=alsa-devel@alsa-project.org \
    --cc=gustavo.serra@tet.com.br \
    /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.