Skip to content

sndio backend fails unless sndiod (daemon) is started on FreeBSD #746

@jbeich

Description

@jbeich

Regressed by #743. Affects cubeb-test but not test_audio. CC @ratchov
Found via RPCS3/Yuzu/Citra which unlike Firefox (see media.cubeb.backend) don't expose a way to force a specific cubeb backend.

$ pkg install cmake ninja googletest sndio
$ export CFLAGS="-isystem/usr/local/include" CXXFLAGS="-isystem/usr/local/include" LDFLAGS="-L/usr/local/lib"
$ cmake -G Ninja -B /tmp/cubeb_build
$ cmake --build /tmp/cubeb_build

$ /tmp/cubeb_build/cubeb-test
Log level is DISABLED
Init cubeb backend: sndio
collection device type is UNKNOWN
cubeb.c:625:DeviceID: "default" (PREFERRED)
        Name:   "default"
        Group:  "default"
        Vendor: "(null)"
        Type:   output
        State:  enabled
        Maximum channels:       8
        Format: S16LE (0x10) (default: S16LE)
        Rate:   [4000, 192000] (default: 48000)
        Latency: lo 480 frames, hi 9600 frames
Found 1 output devices. Choose one:
# 0
        name: system default device
# 1  (PREFERRED)
        name: default
        device id: default
        max channels: 8
        state: enabled
Enter device number: 0
Could not open the stream
stream_init failed
Abort trap

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions