From jargaud at tixeo.com Wed Oct 2 12:38:07 2024 From: jargaud at tixeo.com (jargaud at tixeo.com) Date: Wed, 02 Oct 2024 12:38:07 +0000 Subject: More than 64 connections Message-ID: Hello everyone, I need to connect more than 64 clients to a PulseAudio server (PulseAudio 16.1 on Debian 12), 100 to be exact. From the 65th client, I cannot retrieve the list of devices. I've seen this warning in journalctl: Warning! Too many connections (64), dropping incoming connection. I've seen the limitation in pulsecore/protocol-esound.c : #define MAX_CONNECTIONS 64 Could anyone confirm the following points: - To modify this limit, there is no other way than to download, modify and build the PulseAudio sources (i've searched among the configuration files without result). - Changing this limit to 100 won't affect the PulseAudio performance too much. Feel free to ask any additional information. Thank you and have a nice day ! Julien -------------- next part -------------- An HTML attachment was scrubbed... URL: From arun at arunraghavan.net Wed Oct 2 17:21:56 2024 From: arun at arunraghavan.net (Arun Raghavan) Date: Wed, 02 Oct 2024 13:21:56 -0400 Subject: More than 64 connections In-Reply-To: References: Message-ID: Hi Julien, On Wed, 2 Oct 2024, at 8:38 AM, jargaud at tixeo.com wrote: > Hello everyone, > > I need to connect more than 64 clients to a PulseAudio server > (PulseAudio 16.1 on Debian 12), 100 to be exact. > From the 65th client, I cannot retrieve the list of devices. I've seen > this warning in journalctl: > Warning! Too many connections (64), dropping incoming connection. > > I've seen the limitation in pulsecore/protocol-esound.c : > #define MAX_CONNECTIONS 64 You want protocol-native.c, not protocol-esound.c. > Could anyone confirm the following points: > 1. To modify this limit, there is no other way than to download, > modify and build the PulseAudio sources (i've searched among the > configuration files without result). That is correct. > 2. Changing this limit to 100 won't affect the PulseAudio performance > too much. It should be fine, at least in so far as you have the resources to serve up whatever the clients need. I believe this define was just set a long time ago, and we've not really had much pull to change this. If you find yourself switching to PipeWire and using the pipewire-pulse bridge, the max clients can be changed in configuration there. Cheers, Arun From dhruvmenon1104 at gmail.com Wed Oct 30 06:09:55 2024 From: dhruvmenon1104 at gmail.com (Dhruv Menon) Date: Wed, 30 Oct 2024 11:39:55 +0530 Subject: Connecting RPi4 to Mobile via Bluetooth for Audio Streaming in PulseAudio Message-ID: Hi PulseAudio team, Hope you are having a good day. I?m trying to connect my Raspberry Pi 4 and mobile phone via Bluetooth to access both media audio and phone call audio (A2DP and HFP), with the goal of streaming this audio using GStreamer. I successfully connected my Raspberry Pi to my phone and managed to get both HFP and A2DP profiles. Running pacmd list-cards gave the following output: index: 5 > name: > driver: > owner module: 39 > properties: > device.description = "melphone" > device.string = "2C:BE:EB:8B:F2:D7" > device.api = "bluez" > device.class = "sound" > device.bus = "bluetooth" > device.form_factor = "phone" > bluez.path = "/org/bluez/hci1/dev_2C_BE_EB_8B_F2_D7" > bluez.class = "0x5a420c" > bluez.alias = "melphone" > device.icon_name = "audio-card-bluetooth" > bluetooth.codec = "CVSD" > profiles: > a2dp_source: High Fidelity Capture (A2DP Source) (priority > 20, available: unknown) > headset_audio_gateway: Headset Audio Gateway (HSP) > (priority 10, available: unknown) > off: Off (priority 0, available: yes) > active profile: > sinks: > bluez_sink.2C_BE_EB_8B_F2_D7.headset_audio_gateway/#5: > melphone > sources: > > bluez_sink.2C_BE_EB_8B_F2_D7.headset_audio_gateway.monitor/#14: Monitor of > melphone > bluez_source.2C_BE_EB_8B_F2_D7.headset_audio_gateway/#15: > melphone > ports: > phone-output: Phone (priority 0, latency offset 0 usec, > available: unknown) > phone-input: Phone (priority 0, latency offset 0 usec, > available: unknown) To test audio streaming, I used the following GStreamer command: > gst-launch-1.0 -v pulsesrc > device=bluez_source.2C_BE_EB_8B_F2_D7.headset_audio_gateway ! audioconvert > ! audioresample ! wavenc ! filesink location=output.wav However, I encountered an issue: the media doesn?t play. The Video is not paused, but playback doesn?t progress beyond 0:00. Any guidance on resolving this would be greatly appreciated! I am happy to provide any more info required. Best regards, Dhruv Menon -------------- next part -------------- An HTML attachment was scrubbed... URL: