<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 31.07.2018 07:10, Harish Gaddameedi
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAF=7OnJ0mu0nStgPr-TTgTdox0nXZWYJH9fytgexZBwFK+usBQ@mail.gmail.com">
      <div dir="ltr">Hi Georg,
        <div><br>
        </div>
        <div><span
style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">As
            i told module-loopback is giving overall latency around
            300ms from the time when i started the sequence, and<span> </span></span><b
style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">latency
            of module-loopback doesn't grow at any point of time</b><span
style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">.
            On saturday and sunday, we have kept a continuous streaming
            for 2 days, expecting that the delay will be further
            increased, but the delay is constant with 4-5 secs, and <b>there
              are no errors in the logs</b>. Are there any chances like
            alsa-sink is filling somewhere and blocking the source to
            send the audio chunks into the memblockq? </span><br>
          <div><br>
          </div>
          <div><i><b>module-loopback output is like this:</b></i></div>
          <div>
            <div><i>Tue Jul 31 10:15:37 2018 user.debug
                pulseaudio[4370]: (47917.422|   0.020) [alsa-sink-I2S
                cx2072x-dsp-0] alsa-sink.c: Wakeup from ALSA!</i></div>
            <div><i>Tue Jul 31 10:15:37 2018 user.debug
                pulseaudio[4370]: (47917.443|   0.020) [pulseaudio]
                module-loopback.c: Loopback overall latency is 0.02 ms +
                244.43 ms + 54.55 ms = 298.89 ms</i></div>
            <div><i>Tue Jul 31 10:15:37 2018 user.debug
                pulseaudio[4370]: (47917.443|   0.000) [pulseaudio]
                module-loopback.c: Loopback latency at base rate is
                298.42 ms</i></div>
            <div><i>Tue Jul 31 10:15:37 2018 user.debug
                pulseaudio[4370]: (47917.443|   0.000) [pulseaudio]
                module-loopback.c: [alsa_output.0] Updated sampling rate
                to 44053 Hz.</i></div>
          </div>
          <div><i><br>
            </i></div>
          <div><i><b>pactl list sources:</b></i></div>
          <div>
            <div><i>Source #1</i></div>
            <div><i><span style="white-space:pre">  </span>State: RUNNING</i></div>
            <div><i><span style="white-space:pre">  </span>Name:
                bluez_source</i></div>
            <div><i><span style="white-space:pre">  </span>Description:
                AP 🙏</i></div>
            <div><i><span style="white-space:pre">  </span>Driver:
                module-bluez5-device.c</i></div>
            <div><i><span style="white-space:pre">  </span>Sample
                Specification: s16le 2ch 44100Hz</i></div>
            <div><i><span style="white-space:pre">  </span>Channel Map:
                front-left,front-right</i></div>
            <div><i><span style="white-space:pre">  </span>Owner Module:
                17</i></div>
            <div><i><span style="white-space:pre">  </span>Mute: no</i></div>
            <div><i><span style="white-space:pre">  </span>Volume:
                front-left: 65536 / 100% / 0.00 dB,   front-right: 65536
                / 100% / 0.00 dB</i></div>
            <div><i><span style="white-space:pre">  </span>       
                balance 0.00</i></div>
            <div><i><span style="white-space:pre">  </span>Base Volume:
                65536 / 100% / 0.00 dB</i></div>
            <div><i><span style="white-space:pre">  </span>Monitor of
                Sink: n/a</i></div>
            <div><i><span style="white-space:pre">  </span>Latency: 45876
                usec, configured 39512 usec</i></div>
            <div><i><span style="white-space:pre">  </span>Flags:
                HARDWARE DECIBEL_VOLUME LATENCY </i></div>
            <div><i><span style="white-space:pre">  </span>Properties:</i></div>
            <div><i><span style="white-space:pre">          </span>bluetooth.protocol
                = "a2dp_source"</i></div>
            <div><i><span style="white-space:pre">          </span>device.description
                = "AP 🙏"</i></div>
            <div><i><span style="white-space:pre">          </span>device.string
                = "AC:C1:EE:69:A6:02"</i></div>
            <div><i><span style="white-space:pre">          </span>device.api =
                "bluez"</i></div>
            <div><i><span style="white-space:pre">          </span>device.class
                = "sound"</i></div>
            <div><i><span style="white-space:pre">          </span>device.bus =
                "bluetooth"</i></div>
            <div><i><span style="white-space:pre">          </span>device.form_factor
                = "phone"</i></div>
            <div><i><span style="white-space:pre">          </span>bluez.path =
                "/org/bluez/hci0/dev_AC_C1_EE_69_A6_02"</i></div>
            <div><i><span style="white-space:pre">          </span>bluez.class =
                "0x5a020c"</i></div>
            <div><i><span style="white-space:pre">          </span>bluez.alias =
                "AP 🙏"</i></div>
            <div><i><span style="white-space:pre">          </span>device.icon_name
                = "audio-card-bluetooth"</i></div>
            <div><i><span style="white-space:pre">  </span>Ports:</i></div>
            <div><i><span style="white-space:pre">          </span>phone-input:
                Phone (priority: 0, available)</i></div>
            <div><i><span style="white-space:pre">  </span>Active Port:
                phone-input</i></div>
            <div><i><span style="white-space:pre">  </span>Formats:</i></div>
            <div><i><span style="white-space:pre">          </span>pcm</i></div>
            <div style="font-weight:bold"><br>
            </div>
          </div>
          <div style="font-weight:bold"><i>pactl list sinks:</i></div>
          <div style="">
            <div style=""><i>Sink #0</i></div>
            <div style=""><i><span style="white-space:pre">       </span>State:
                RUNNING</i></div>
            <div style=""><i><span style="white-space:pre">       </span>Name:
                alsa_output.0</i></div>
            <div style=""><i><span style="white-space:pre">       </span>Description:
                ipq4019_snd_card</i></div>
            <div style=""><i><span style="white-space:pre">       </span>Driver:
                module-alsa-sink.c</i></div>
            <div style=""><i><span style="white-space:pre">       </span>Sample
                Specification: s16le 2ch 48000Hz</i></div>
            <div style=""><i><span style="white-space:pre">       </span>Channel
                Map: front-left,front-right</i></div>
            <div style=""><i><span style="white-space:pre">       </span>Owner
                Module: 5</i></div>
            <div style=""><i><span style="white-space:pre">       </span>Mute:
                no</i></div>
            <div style=""><i><span style="white-space:pre">       </span>Volume:
                front-left: 65536 / 100% / 0.00 dB,   front-right: 65536
                / 100% / 0.00 dB</i></div>
            <div style=""><i><span style="white-space:pre">       </span>     
                  balance 0.00</i></div>
            <div style=""><i><span style="white-space:pre">       </span>Base
                Volume: 65536 / 100% / 0.00 dB</i></div>
            <div style=""><i><span style="white-space:pre">       </span>Monitor
                Source: alsa_output.0.monitor</i></div>
            <div style=""><i><span style="white-space:pre">       </span>Latency:
                0 usec, configured 26000 usec</i></div>
            <div style=""><i><span style="white-space:pre">       </span>Flags:
                HARDWARE DECIBEL_VOLUME LATENCY </i></div>
            <div style=""><i><span style="white-space:pre">       </span>Properties:</i></div>
            <div style=""><i><span style="white-space:pre">               </span>alsa.resolution_bits
                = "16"</i></div>
            <div style=""><i><span style="white-space:pre">               </span>device.api
                = "alsa"</i></div>
            <div style=""><i><span style="white-space:pre">               </span>device.class
                = "sound"</i></div>
            <div style=""><i><span style="white-space:pre">               </span>alsa.class
                = "generic"</i></div>
            <div style=""><i><span style="white-space:pre">               </span>alsa.subclass
                = "generic-mix"</i></div>
            <div style=""><i><span style="white-space:pre">               </span><a
                  href="http://alsa.name" moz-do-not-send="true">alsa.name</a>
                = ""</i></div>
            <div style=""><i><span style="white-space:pre">               </span><a
                  href="http://alsa.id" moz-do-not-send="true">alsa.id</a>
                = "I2S cx2072x-dsp-0"</i></div>
            <div style=""><i><span style="white-space:pre">               </span>alsa.subdevice
                = "0"</i></div>
            <div style=""><i><span style="white-space:pre">               </span>alsa.subdevice_name
                = "subdevice #0"</i></div>
            <div style=""><i><span style="white-space:pre">               </span>alsa.device
                = "0"</i></div>
            <div style=""><i><span style="white-space:pre">               </span>alsa.card
                = "0"</i></div>
            <div style=""><i><span style="white-space:pre">               </span>alsa.card_name
                = "snd_card"</i></div>
            <div style=""><i><span style="white-space:pre">               </span>alsa.long_card_name
                = "snd_card"</i></div>
            <div style=""><i><span style="white-space:pre">               </span>alsa.driver_name
                = "<i
style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">snd_card</i>"</i></div>
            <div style=""><i><span style="white-space:pre">               </span>device.string
                = "dmixer"</i></div>
            <div style=""><i><span style="white-space:pre">               </span>device.buffering.buffer_size
                = "383040"</i></div>
            <div style=""><i><span style="white-space:pre">               </span>device.buffering.fragment_size
                = "4032"</i></div>
            <div style=""><i><span style="white-space:pre">               </span>device.access_mode
                = "mmap+timer"</i></div>
            <div style=""><i><span style="white-space:pre">               </span>device.description
                = "snd_card"</i></div>
            <div style=""><i><span style="white-space:pre">               </span>device.icon_name
                = "audio-card"</i></div>
            <div style=""><i><span style="white-space:pre">       </span>Formats:</i></div>
            <div style=""><i><span style="white-space:pre">               </span>pcm</i></div>
            <div style="font-weight:bold"><br>
            </div>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
        </div>
      </div>
    </blockquote>
    Please do not top-post.<br>
    <br>
    To me it looks like that is an issue in the ALSA driver and not
    related to pulseaudio.<br>
    The driver must be reporting the wrong latency. Did you set the
    loopback latency to<br>
    300 ms? Default is 200 ms. <br>
  </body>
</html>