sox-users@lists.sourceforge.net unofficial mirror
 help / color / Atom feed
From: Steve Masters <lbaforty@gmail.com>
To: sox-users@lists.sourceforge.net
Subject: Re: Loopback latency issue
Date: Sat, 11 Jul 2020 17:12:32 +0100
Message-ID: <CANaF8bvyeTCVWQz3HaihroFPEfjEhLAgd16cHtONKxTHEe8eEQ@mail.gmail.com> (raw)
In-Reply-To: <yw1x7dvap55e.fsf@mansr.com>


[-- Attachment #1.1: Type: text/plain, Size: 1679 bytes --]

I wonder if it's because the virtual pc doesn't have the same amount of
processes running on it, nor physical data traffic, that your actual
workstation has to deal with. Added to that, the memory available to it -
not being used elsewhere - would improve perfoemance. Just my thinking.

On Sat, 11 Jul 2020, 14:31 Måns Rullgård, <mans@mansr.com> wrote:

> Maxim Doumkine <maxd@coregears.com> writes:
>
> > Hello everyone,
> >
> > We are trying to build a Sox based real-time sound altering app, and
> we’ve
> > got everything working on our LUbuntu 16.04 stations except for an issue
> w
> > latency.
> >
> > When we test it on actual hardware, we are having a latency of about 2
> > seconds, when we test it on our virtual machine the latency is more like
> > 250ms.
> >
> > sox -t pusleaudio default -t pulseaudio null pitch n
> > Whenever we add the null loopback or aloop, we experience a delay. No
> amount
> > of config tinkering seems to affect this latency on an actual
> workstation.
>
> The first thing I'd do is get rid of pulseaudio and access the ALSA
> device directly.  Even then, however, there are several places where
> latency is added.  You can find the ALSA buffer sizes currently uses by
> examining /proc/asound/card0/pcm0p/sub0/hw_params (or whatever numbers
> your system uses).  The size (in bytes) of the main buffer in SoX is set
> with the --buffer option.  Some effects have additional internal buffers.
>
> --
> Måns Rullgård
>
>
> _______________________________________________
> Sox-users mailing list
> Sox-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sox-users
>

[-- Attachment #1.2: Type: text/html, Size: 2316 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

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

  parent 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 [this message]
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

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=CANaF8bvyeTCVWQz3HaihroFPEfjEhLAgd16cHtONKxTHEe8eEQ@mail.gmail.com \
    --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