Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use hardware mixer in combination with Bluealsa #1317

Open
Matthijsy opened this issue Jan 1, 2025 · 0 comments
Open

Cannot use hardware mixer in combination with Bluealsa #1317

Matthijsy opened this issue Jan 1, 2025 · 0 comments

Comments

@Matthijsy
Copy link

Describe the bug
I am trying to use the hardware mixer in combination with Bluealsa in my snapclient configuration. My system has a Bluetooth speaker connected, which uses bluealsa and works fine when using the software mixer. However as soon as I try the following it give an error.

snapclient -h <host> -s bluealsa --mixer hardware:'<device name>'

The error is as follows:

[Fatal] (Snapclient) Exception: assign: Bad file descriptor [system:9 at ./boost_1_85_0/boost/asio/detail/impl/reactive_descriptor_service.ipp:120 in function 'assign']
[Notice] (Snapclient) Snapclient terminated.

Environment details

  • OS: Debian 12
  • Snapcast version: v0.29.0
  • Installed from Github releases

Attach logfile if applicable
Generate logs with snapclient --logfilter debug or snapserver --logging.filter debug if possible and paste them in the following codeblock

2025-01-01 21-09-08.075 [Info] (Snapclient) Version 0.29.0, revision 208066e5
2025-01-01 21-09-08.075 [Info] (Connection) Resolving host IP for: <redacted>
2025-01-01 21-09-08.075 [Info] (Connection) Connecting to <redacted>:1704
2025-01-01 21-09-08.076 [Notice] (Connection) Connected to <redacted>
2025-01-01 21-09-08.076 [Info] (Connection) My MAC: "<redacted>", socket: 8
2025-01-01 21-09-08.083 [Info] (Controller) ServerSettings - buffer: 1000, latency: 0, volume: 100, muted: 0
2025-01-01 21-09-08.084 [Info] (Controller) Codec: flac, sampleformat: 44100:16:2
2025-01-01 21-09-08.084 [Info] (Player) Player name: alsa, device: bluealsa, description: Bluetooth Audio Hub, idx: 4, sharing mode: unspecified, parameters: <none>
2025-01-01 21-09-08.084 [Info] (Player) Mixer mode: hardware, parameters: SRS-XB100 - A2DP
2025-01-01 21-09-08.084 [Info] (Player) Sampleformat: 44100:16:2, stream: 44100:16:2
2025-01-01 21-09-08.084 [Info] (Alsa) Using default buffer_time: 80 ms, default fragments: 4
D: bluealsa-pcm.c:1309: Getting BlueALSA PCM: PLAYBACK 00:A4:1C:20:5C:A7 a2dp
D: bluealsa-pcm.c:1062: /org/bluealsa/hci0/dev_00_A4_1C_20_5C_A7/a2dpsrc/sink: Setting constraints
D: bluealsa-pcm.c:532: /org/bluealsa/hci0/dev_00_A4_1C_20_5C_A7/a2dpsrc/sink: Initializing HW
D: bluealsa-pcm.c:567: /org/bluealsa/hci0/dev_00_A4_1C_20_5C_A7/a2dpsrc/sink: FIFO buffer size: 1024 frames
D: bluealsa-pcm.c:581: /org/bluealsa/hci0/dev_00_A4_1C_20_5C_A7/a2dpsrc/sink: Selected HW buffer: 4 periods x 3840 bytes == 15360 bytes
D: bluealsa-pcm.c:600: /org/bluealsa/hci0/dev_00_A4_1C_20_5C_A7/a2dpsrc/sink: Initializing SW
D: bluealsa-pcm.c:600: /org/bluealsa/hci0/dev_00_A4_1C_20_5C_A7/a2dpsrc/sink: Initializing SW
D: bluealsa-pcm.c:600: /org/bluealsa/hci0/dev_00_A4_1C_20_5C_A7/a2dpsrc/sink: Initializing SW
D: bluealsa-pcm.c:639: /org/bluealsa/hci0/dev_00_A4_1C_20_5C_A7/a2dpsrc/sink: Prepared
2025-01-01 21-09-08.272 [Info] (Alsa) PCM name: bluealsa, sample rate: 44100 Hz, channels: 2, buffer time: 80000 us, periods: 4, period time: 20000 us, period frames: 882
D: bluealsa-pcm.c:600: /org/bluealsa/hci0/dev_00_A4_1C_20_5C_A7/a2dpsrc/sink: Initializing SW
ALSA lib bluealsa-ctl.c:205:(bluealsa_dev_fetch_battery) Couldn't get device battery status: Object does not exist at path “/org/bluealsa/hci0/dev_00_A4_1C_20_5C_A7/rfcomm”
ALSA lib bluealsa-ctl.c:205:(bluealsa_dev_fetch_battery) Couldn't get device battery status: Object does not exist at path “/org/bluealsa/hci0/dev_00_A4_1C_20_5C_A7/rfcomm”
D: bluealsa-pcm.c:392: /org/bluealsa/hci0/dev_00_A4_1C_20_5C_A7/a2dpsrc/sink: Stopping
D: bluealsa-pcm.c:392: /org/bluealsa/hci0/dev_00_A4_1C_20_5C_A7/a2dpsrc/sink: Stopping
D: bluealsa-pcm.c:592: /org/bluealsa/hci0/dev_00_A4_1C_20_5C_A7/a2dpsrc/sink: Freeing HW
D: bluealsa-pcm.c:443: /org/bluealsa/hci0/dev_00_A4_1C_20_5C_A7/a2dpsrc/sink: Closing
2025-01-01 21-09-08.277 [Fatal] (Snapclient) Exception: assign: Bad file descriptor [system:9 at ./boost_1_85_0/boost/asio/detail/impl/reactive_descriptor_service.ipp:120 in function 'assign']
2025-01-01 21-09-08.277 [Notice] (Snapclient) Snapclient terminated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant