All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Clemens Ladisch" <cladisch@fastmail.net>
To: Gabriele Melia <gabmelia84@msn.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: Broken playback
Date: Thu, 22 Nov 2007 09:14:26 +0100	[thread overview]
Message-ID: <1195719266.22048.1222696087@webmail.messagingengine.com> (raw)
In-Reply-To: <BLU107-W25C7A8D036E93269A46276C1780@phx.gbl>

Gabriele Melia wrote:
> > snd_pcm_hw_params_set_buffer_size_near(), but the allowed values are
> > hardware dependent. You might want to add your own circular buffer that
> > is bigger than ALSA's.
>  
> So your suggestion is to limit my buffer_size after decode to be same of
> ALSA's?

No; my suggestion is to use your own buffer which is big enough for your
decoder, and use this buffer to fill ALSA's buffer, whenever possible.

If one call to your decoder function needs so much time that ALSA's
buffer can become emptied, you need another thread to re-fill the ALSA
buffer in parallel with the decoding.


Regards,
Clemens

      parent reply	other threads:[~2007-11-22  8:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-21  8:46 Broken playback Gabriele Melia
2007-11-21 11:36 ` Clemens Ladisch
     [not found]   ` <BLU107-W5983EEB0D75DFABAC2EC60C1780@phx.gbl>
2007-11-21 15:28     ` Clemens Ladisch
     [not found]       ` <BLU107-W413B1F3D204AF054EDB272C1780@phx.gbl>
2007-11-21 16:09         ` Clemens Ladisch
     [not found]           ` <BLU107-W25C7A8D036E93269A46276C1780@phx.gbl>
2007-11-22  8:14             ` 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=1195719266.22048.1222696087@webmail.messagingengine.com \
    --to=cladisch@fastmail.net \
    --cc=alsa-devel@alsa-project.org \
    --cc=gabmelia84@msn.com \
    /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.