Skip to content

Error with FIFO output introduced by #285 #294

@titilambert

Description

@titilambert

I'm using snapcast with the follow config

    stream = pipe:///tmp/fifo/go-spotify?name=gotify&mode=create&dryout_ms=2000&sampleformat=44100:16:2

and go-librespot (tested with 0.7.0 and 0.7.1) with

zeroconf_enabled: true # Whether to keep the device discoverable at all times, even if authenticated via other means
zeroconf_port: 0 # The port to use for Zeroconf, 0 for random
credentials:
  type: zeroconf
  zeroconf:
    persist_credentials: false # Whether to persist zeroconf user credentials even after disconnecting

log_level: info # Log level configuration (trace, debug, info, warn, error)
#device_id: '' # Spotify device ID (auto-generated)
device_name: 'drakkarmin' # Spotify device name
device_type: speaker # Spotify device type (icon)
audio_backend: pipe # Audio backend to use (alsa, pipe, pulseaudio)
#audio_device: default # ALSA audio device to use for playback
#mixer_device: '' # ALSA mixer device for volume synchronization
#mixer_control_name: Master # ALSA mixer control name for volume synchronization
#audio_buffer_time: 500000 # Audio buffer time in microseconds, ALSA only
#audio_period_count: 4 # Number of periods to request, ALSA only
audio_output_pipe: '/tmp/fifo/go-spotify' # Path to a named pipe for audio output
audio_output_pipe_format: s16le # Audio output pipe format (s16le, s32le, f32le)
bitrate: 320 # Playback bitrate (96, 160, 320)
volume_steps: 20 # Volume steps count
initial_volume: 10 # Initial volume in steps (not applied to the mixer device)
external_volume: false # Whether volume is controlled externally
disable_autoplay: false # Whether autoplay of more songs should be disabled

but when go-librespot > 0.6.2 starts, it crashes because snapcast is not reading the fifo file with the following error

time="2026-03-17T02:37:51Z" level=warning msg="failed handling dealer request" error="failed loading current track (load context): failed setting stream for spotify:track:6cZDf3mpynxrZbnx95j0tp: failed to open fifo: open /tmp/fifo/go-spotify: no such device or address"

It crashing with go-librespot 0.7.0 and 0.7.1 but working with 0.6.2. I'm quite sure #285 introduced the error

ref: #284

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions