thewierdnut / asha_pipewire_sink

Asha audio protocol implementation for linux.
The Unlicense
28 stars 3 forks source link

Test results More 1 #21

Closed BMarques closed 3 months ago

BMarques commented 3 months ago

Hello, First of all, thank you for this project, been looking for something similar since I got my More's back in December of 2021. I've been using streaming in Windows with Connect Clip for regular use where the latency of 180 ms is no big deal (mostly because videos normally do the A/V Sync), but gaming has been mostly done with the TV Adapter 3.0.

I've been using this project daily since the 11th of July, mostly to game and listen to music in YouTube (I don't think it's doing anything like A/V Sync as with the Connect Clip).

Regarding latency, I simply don't notice any latency. Hard to believe for me, but it's the case. The sound quality is similar to what I hear on my phone. Curiously, regarding latency, on my old Samsung A33 there was no noticeable latency, but on my new Google Pixel 8a, there's like 300 ms, which is very disappointing...

I have the Intel AX210 wifi/bluetooth M2 adapter installed on my laptop.

Those were the good parts.

The bad parts:

My btmgmt Supported phys: BR1M1SLOT BR1M3SLOT BR1M5SLOT EDR2M1SLOT EDR2M3SLOT EDR2M5SLOT EDR3M1SLOT EDR3M3SLOT EDR3M5SLOT LE1MTX LE1MRX LE2MTX LE2MRX LECODEDTX LECODEDRX Configurable phys: BR1M3SLOT BR1M5SLOT EDR2M1SLOT EDR2M3SLOT EDR2M5SLOT EDR3M1SLOT EDR3M3SLOT EDR3M5SLOT LE2MTX LE2MRX LECODEDTX LECODEDRX Selected phys: BR1M1SLOT BR1M3SLOT BR1M5SLOT EDR2M1SLOT EDR2M3SLOT EDR2M5SLOT EDR3M1SLOT EDR3M3SLOT EDR3M5SLOT LE1MTX LE1MRX LE2MTX LE2MRX LECODEDTX LECODEDRX

My ./asha_connection_test

process:14219): GLib-GIO-DEBUG: 22:50:51.612: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
** INFO: 22:50:51.626: Adding bluetooth device Bruno
** INFO: 22:50:51.661: Bruno (Right)
** INFO: 22:50:51.661:     Name:      Bruno
** INFO: 22:50:51.661:     Mac:       00:F8:71:AA:91:3D
** INFO: 22:50:51.661:     HiSyncId:  3914575023093907719
** INFO: 22:50:51.661:     Side:      right (binaural)
** INFO: 22:50:51.661:     Delay:     89 ms
** INFO: 22:50:51.661:     Streaming: supported
** INFO: 22:50:51.661:     Codecs:    G.722@16kHz
** INFO: 22:50:51.740: right Sending ACP status parameters updated 16
** INFO: 22:50:51.781:     Connected: true
** INFO: 22:50:51.781:     L2CAP_CONNINFO:
** INFO: 22:50:51.781:        handle: 2049
** INFO: 22:50:51.781:        class:  [0, 0, 0]
** INFO: 22:50:51.781:     MTU:       SND 248 RCV 672
** INFO: 22:50:51.781:     PHY:    6144 LE_2M_TX LE_2M_RX
** INFO: 22:50:51.781:     MODE: LE_FLOWCTL
** INFO: 22:50:51.781:     Hci Connection Info:
** INFO: 22:50:51.781:        type:   128 LE
** INFO: 22:50:51.781:        out:    1 true
** INFO: 22:50:51.781:        state:  1 CONNECTED
** INFO: 22:50:51.781:        mode:   7 MASTER AUTH ENCRYPT
** INFO: 22:50:51.781:     min_connection_interval: 16
** INFO: 22:50:51.781:     max_connection_interval: 16
** INFO: 22:50:51.784: Adding bluetooth device Bruno
** INFO: 22:50:51.838: Bruno (Left)
** INFO: 22:50:51.838:     Name:      Bruno
** INFO: 22:50:51.838:     Mac:       00:F8:71:AA:8C:E4
** INFO: 22:50:51.838:     HiSyncId:  3914575023093907719
** INFO: 22:50:51.838:     Side:      left (binaural)
** INFO: 22:50:51.838:     Delay:     89 ms
** INFO: 22:50:51.838:     Streaming: supported
** INFO: 22:50:51.838:     Codecs:    G.722@16kHz
** INFO: 22:50:51.916: left  Sending ACP status parameters updated 16
** INFO: 22:50:51.957:     Connected: true
** INFO: 22:50:51.957:     L2CAP_CONNINFO:
** INFO: 22:50:51.957:        handle: 2048
** INFO: 22:50:51.957:        class:  [0, 0, 0]
** INFO: 22:50:51.957:     MTU:       SND 248 RCV 672
** INFO: 22:50:51.957:     PHY:    6144 LE_2M_TX LE_2M_RX
** INFO: 22:50:51.957:     MODE: LE_FLOWCTL
** INFO: 22:50:51.957:     Hci Connection Info:
** INFO: 22:50:51.957:        type:   128 LE
** INFO: 22:50:51.957:        out:    1 true
** INFO: 22:50:51.957:        state:  1 CONNECTED
** INFO: 22:50:51.957:        mode:   7 MASTER AUTH ENCRYPT
** INFO: 22:50:51.957:     min_connection_interval: 16
** INFO: 22:50:51.957:     max_connection_interval: 16
thewierdnut commented 3 months ago
* The hearing aids can't be connected at the same time as my bluetooth keyboard + mouse. 

This is a known issue. I'm still trying to find a way to keep the stream stable when other devices are connected. Unfortunately, the connection parameters currently have to be applied globally, which doesn't really leave room for other devices. See issue #16

* Once I step away from the laptop, about 20 metres, it disconnects to the laptop and reconnecting is not really easy, it's best to restart the asha_pipeline_sink command.

The default threaded buffering algorithm doesn't reconnect correctly anymore after I refactored the buffering. You may have better luck with the poll4 or poll8 buffering algorithms. I've created issue #22 to address this.

Thank you for this report. Please let me know if you encounter any new bugs.