Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mats Lindestam <mats.lindestam@axis.com>
To: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Alsa-loopback
Date: Fri, 10 May 2019 07:15:46 +0000	[thread overview]
Message-ID: <1557472546239.42034@axis.com> (raw)

Hi,


I am new to Alsa and I have been told that there is some kind of buffer/queue, in Alsa-loopback, that regulates when 'sound-buffers' is dropped.

What I would like to achieve is make the buffer/queue larger (500 ms).


>From what I have heard is that it should be possible to configure the buffer/queue, in Alsa-loopback, via the /etc/asound.conf configuration file.


It seems that the parameters period_time, period_size, buffer_time, buffer_size & rate are important to achieve what I want. I haven't found any information on what these parameters do and how or if they are used in conjunction with each other.


Here is my asound.conf file:


  # cat /etc/asound.conf
  pcm_slave.aloopcommon {
    pcm "hw:Loopback,0,0"
    ...
    rate 16000
    period_time 64000
    buffer_time 512000
  }

  pcm.!audiosource0 {
    type dsnoop
    ...
    slave aloopcommon
    ...
  }

Is there somewhere where these parameters are explained and how they interact?

BR

/Mats
?

                 reply	other threads:[~2019-05-10  7:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1557472546239.42034@axis.com \
    --to=mats.lindestam@axis.com \
    --cc=alsa-devel@alsa-project.org \
    /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