<font size=2 face="sans-serif">Hi All,</font>
<br><font size=2 face="sans-serif"> Hopefully
everyone isn't receiving this twice, I think the first one was blocked
due to being to large (I've trimmed the output below, hopefully not too
much though!)</font>
<br>
<br><font size=2 face="sans-serif">Apologies if this is duplicated.</font>
<br>
<br><font size=2 face="sans-serif">Alex</font>
<br>
<br>
<br><font size=2 face="sans-serif">Hi All,</font>
<br><font size=2 face="sans-serif"> I've
setup pulse audio to stream music from my iPhone (connected using BlueTooth)
and output it, using module-loopback.... This is working fine, the only
issue I have appears to be related the bitrate/timing etc... The music
is very crackly, and is playing back too slowly.... I've tried changing
a number of options, but haven't been able to resolve it. I've tried
lots of different combinations of the 'rate' option, but none helped...
Any help really would be much appreciated, please find debug output
below, along with the script I'm executing:</font>
<br>
<br><font size=2 face="sans-serif">Script:</font>
<br><font size=2 face="sans-serif">#!/usr/bin/pulseaudio -vvvnF</font>
<br><font size=2 face="sans-serif">load-module module-alsa-sink device=default:CARD=Live
sink_name=output rate=48000</font>
<br><font size=2 face="sans-serif">load-module module-bluetooth-device
address="XX:XX:XX:XX:XX:XX" path="/org/bluez/1662/hci0/dev_XX_XX_XX_XX_XX_XX"
profile="a2dp_source" auto_connect=yes name=input rate=44100</font>
<br><font size=2 face="sans-serif">load-module module-loopback source=1
sink=0 rate=44100</font>
<br>
<br><font size=2 face="sans-serif">Partial output:</font>
<br><font size=2 face="sans-serif">I: main.c: Daemon startup complete.</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Loopback overall
latency is 100.04 ms + 0.00 ms + 39.51 ms = 139.55 ms</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Should buffer
35280 bytes, buffered at minimum 0 bytes</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Old rate 44100
Hz, new rate 43218 Hz</font>
<br><font size=2 face="sans-serif">D: bluetooth-util.c: dbus: interface=org.bluez.AudioSource,
path=/org/bluez/1662/hci0/dev_64_B9_E8_19_DD_FA, member=PropertyChanged</font>
<br><font size=2 face="sans-serif">D: module-bluetooth-device.c: dbus:
interface=org.bluez.AudioSource, path=/org/bluez/1662/hci0/dev_64_B9_E8_19_DD_FA,
member=PropertyChanged</font>
<br><font size=2 face="sans-serif">D: bluetooth-util.c: dbus: interface=org.bluez.AudioSource,
path=/org/bluez/1662/hci0/dev_64_B9_E8_19_DD_FA, member=PropertyChanged</font>
<br><font size=2 face="sans-serif">D: module-bluetooth-device.c: dbus:
interface=org.bluez.AudioSource, path=/org/bluez/1662/hci0/dev_64_B9_E8_19_DD_FA,
member=PropertyChanged</font>
<br><font size=2 face="sans-serif">I: main.c: Got signal SIGUSR2.</font>
<br><font size=2 face="sans-serif">I: module.c: Loaded "module-cli-protocol-unix"
(index: #3; argument: "").</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Loopback overall
latency is 99.98 ms + 0.00 ms + 39.51 ms = 139.49 ms</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Should buffer
34576 bytes, buffered at minimum 0 bytes</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Old rate 43218
Hz, new rate 43236 Hz</font>
<br><font size=2 face="sans-serif">I: client.c: Created 0 "UNIX socket
client"</font>
<br><font size=2 face="sans-serif">D: bluetooth-util.c: dbus: interface=org.bluez.AudioSource,
path=/org/bluez/1662/hci0/dev_64_B9_E8_19_DD_FA, member=PropertyChanged</font>
<br><font size=2 face="sans-serif">D: module-bluetooth-device.c: dbus:
interface=org.bluez.AudioSource, path=/org/bluez/1662/hci0/dev_64_B9_E8_19_DD_FA,
member=PropertyChanged</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Loopback overall
latency is 99.99 ms + 400.66 ms + 42.02 ms = 542.67 ms</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Should buffer
34592 bytes, buffered at minimum 2560 bytes</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Old rate 43236
Hz, new rate 43300 Hz</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Loopback overall
latency is 99.98 ms + 806.05 ms + 39.69 ms = 945.71 ms</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Should buffer
34640 bytes, buffered at minimum 69240 bytes</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Old rate 43300
Hz, new rate 44965 Hz</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Loopback overall
latency is 99.98 ms + 781.78 ms + 40.83 ms = 922.60 ms</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Should buffer
35976 bytes, buffered at minimum 134708 bytes</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Old rate 44965
Hz, new rate 46568 Hz</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Loopback overall
latency is 99.98 ms + 429.80 ms + 40.62 ms = 570.40 ms</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Should buffer
37256 bytes, buffered at minimum 79028 bytes</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Old rate 46568
Hz, new rate 45144 Hz</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Loopback overall
latency is 100.00 ms + 409.27 ms + 41.85 ms = 551.11 ms</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Should buffer
36120 bytes, buffered at minimum 73904 bytes</font>
<br><font size=2 face="sans-serif">I: module-loopback.c: Old rate 45144
Hz, new rate 45044 Hz</font>
<br><font size=2 face="sans-serif">I: main.c: Daemon shutdown initiated.</font>
<br>
<br><font size=2 face="sans-serif">Thanks in advance</font>
<br>
<br><font size=2 face="sans-serif">Alex</font>
<br>
<br><font size=2 face="sans-serif">alex@apics.co.uk</font>
<br>
<br><font size=2>Homer Simpson: Facts are meaningless. You could use facts
to prove anything that's even remotely true!</font>