Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pipewire pipewire
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 397
    • Issues 397
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PipeWire
  • pipewirepipewire
  • Issues
  • #767

Closed
Open
Created Feb 19, 2021 by Mersad@meje

Format from ALSA PipeWire plugin does not propagate with Loopback device

When using the ALSA Loopback device with ALSA PipeWire plugin, the format does not propagate to the other side. The ALSA playback device is defined as:

pcm.audiosink {
        type pipewire
        playback_node "alsa_output./sys/devices/platform/snd_aloop.0/sound/card0.analog-mono"
        rate 16000
        format S16_LE
        channels 1
        period_bytes 4000
}

The playback_node defined uses the Loopback device which is hw:0,0,1.

On the other side arecord is used to capture the stream with the same desired format. If aplay is started first, arecord fails with wrong format (get FLOAT_LE instead of S16_LE). But, if arecord is started first and then aplay, the format is correct.

aplay -Daudiosink -fS16_LE -r16000 -c1 /dev/zero

arecord -Dhw:0,1,1 -r16000 -fS16_LE -c1

Edited Feb 19, 2021 by Mersad
Assignee
Assign to
Time tracking