sox-users@lists.sourceforge.net unofficial mirror
 help / color / Atom feed
From: Rafal Maszkowski <rzm@icm.edu.pl>
To: sox-users@lists.sourceforge.net
Subject: Re: Loopback latency issue
Date: Tue, 14 Jul 2020 00:20:52 +0200
Message-ID: <20200713222052.GM15016@ukwial.icm.edu.pl> (raw)
In-Reply-To: <yw1xpn8znnnz.fsf@mansr.com>

On Mon, Jul 13, 2020 at 09:52:00PM +0100, Måns Rullgård wrote:
> Jan Stary <hans@stare.cz> writes:
> > On Jul 11 14:12:13, mans@mansr.com wrote:
> >> Some effects have additional internal buffers.
> > It seems there is a delay even when just playing
> > default input to default output; even without the effects:
> > 	sox -d -d
> > (So I don't think it's the effect processing that introduces the
> > delay.)
> No, then it's just the main buffer that is set with the --buffer option.

There are some buffers in the kernel and large default buffers in
pulseaudio. I have used only small part of the advice in
https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting
and that decreased the delay from some 1/2 s to few tens of ms if I can
judge by ear. There is more to read there though.

    Modify PulseAudio's configuration file (2/4)

    /etc/pulse/daemon.conf

    default-fragments = 3
    default-fragment-size-msec = 5

    Restart the PulseAudio daemon (3/4)


R.
-- 
„Walczy on z całym zapamiętaniem przeciwko intelektowi” - z akt personalnych prof. A. Baeumlera


_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

      reply index

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <0713c9d8-7bdf-4b97-99b4-12e219e94d45@Spark>
2020-07-10 17:40 ` Maxim Doumkine
2020-07-10 18:08   ` Darryl Lewis
2020-07-11 16:04     ` Maxim Doumkine
2020-07-11 13:12   ` Måns Rullgård
2020-07-11 15:59     ` Maxim Doumkine
2020-07-11 16:12     ` Steve Masters
2020-07-13 11:49   ` Jan Stary
2020-07-13 12:05     ` Jan Stary
2020-07-13 15:09     ` Maxim Doumkine
2020-07-13 20:52     ` Måns Rullgård
2020-07-13 22:20       ` Rafal Maszkowski [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-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-users

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200713222052.GM15016@ukwial.icm.edu.pl \
    --to=sox-users@lists.sourceforge.net \
    /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

sox-users@lists.sourceforge.net unofficial mirror

Archives are clonable: git clone --mirror https://public-inbox.org/sox-users

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.audio.sox
	nntp://ou63pmih66umazou.onion/inbox.comp.audio.sox
	nntp://news.gmane.io/gmane.comp.audio.sox

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git