Hi,

I've been building an openwrt router (TL-WR1043ND) to connect my laptop to my stereo. The router uses USB audio running pulseausio 1.1. When I play a song using "paplay -s 192.168.0.44 debaser.wav" it plays fine without stuttering. Also "PULSE_SERVER=192.168.0.44 paplay debaser.wav" works. But if I set the default sink to use the pulseaudio on the router it stutters. What is the difference beteen the different methods? Seems it should be possible using the default sink with the right configuration but I can't seem to find how.

On the client:
>>> jeroen@shuttle:~$ pacmd list-sinks
Welcome to PulseAudio! Use "help" for usage information.
>>> 2 sink(s) available.
  * index: 0
    name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
    driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
    state: SUSPENDED
    suspend cause: IDLE
    priority: 9959
    volume: 0: 100% 1: 100%
            0: 0.00 dB 1: 0.00 dB
            balance 0.00
    base volume: 100%
                 0.00 dB
    volume steps: 65537
    muted: no
    current latency: 0.00 ms
    max request: 0 KiB
    max rewind: 0 KiB
    monitor source: 0
    sample spec: s16le 2ch 44100Hz
    channel map: front-left,front-right
                 Stereo
    used by: 0
    linked by: 0
    configured latency: 0.00 ms; range is 0.50 .. 371.52 ms
    card: 0 <alsa_card.pci-0000_00_1b.0>
    module: 4
    properties:
        alsa.resolution_bits = "16"
        device.api = "alsa"
        device.class = "sound"
        alsa.class = "generic"
        alsa.subclass = "generic-mix"
        alsa.name = "ALC662 rev1 Analog"
        alsa.id = "ALC662 rev1 Analog"
        alsa.subdevice = "0"
        alsa.subdevice_name = "subdevice #0"
        alsa.device = "0"
        alsa.card = "0"
        alsa.card_name = "HDA Intel"
        alsa.long_card_name = "HDA Intel at 0xfdff8000 irq 43"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:1b.0"
        sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
device.product.name = "N10/ICH 7 Family High Definition Audio Controller"
        device.form_factor = "internal"
        device.string = "front:0"
        device.buffering.buffer_size = "65536"
        device.buffering.fragment_size = "32768"
        device.access_mode = "mmap+timer"
        device.profile.name = "analog-stereo"
        device.profile.description = "Analog Stereo"
        device.description = "Built-in Audio Analog Stereo"
        alsa.mixer_name = "Realtek ALC662 rev1"
        alsa.components = "HDA:10ec0662,12970000,00100101"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    ports:
analog-output-speaker: Speakers (priority 10000, available: unknown)
            properties:

        analog-output-headphones: Headphones (priority 9000, available: no)
            properties:

    active port: <analog-output-speaker>
    index: 1
    name: <tunnel.OpenWrt44.local.alsa_output.hw_0_0>
    driver: <module-tunnel.c>
    flags: NETWORK HW_MUTE_CTRL HW_VOLUME_CTRL LATENCY
    state: SUSPENDED
    suspend cause: IDLE
    priority: 0
    volume: 0:  58% 1:  58%
            balance 0.00
    base volume: 100%
    volume steps: 65537
    muted: no
    current latency: 0.00 ms
    max request: 0 KiB
    max rewind: 0 KiB
    monitor source: 3
    sample spec: s16le 2ch 48000Hz
    channel map: front-left,front-right
                 Stereo
    used by: 0
    linked by: 0
    fixed latency: 250.00 ms
    module: 21
    properties:
        device.description = "USB Device 0x41e:0x30d3 on pulse@OpenWrt44"
        tunnel.remote.server = "[192.168.0.44]:4713"
        tunnel.remote.sink = "alsa_output.hw_0_0"
        device.icon_name = "audio-card"
        tunnel.remote_version = "23"
        tunnel.remote.user = "pulse"
        tunnel.remote.fqdn = "OpenWrt44"
        tunnel.remote.description = "USB Device 0x41e:0x30d3"


On the router:
root@OpenWrt44:~# pactl stat
Currently in use: 67 blocks containing 403.0 KiB bytes total.
Allocated during whole lifetime: 8175206 blocks containing 300.1 MiB bytes total.
Sample cache size: 0 B
Server String: /var/run/pulse/native
Library Protocol Version: 23
Server Protocol Version: 23
Is Local: yes
Client Index: 10
Tile Size: 4056
User Name: pulse
Host Name: OpenWrt44
Server Name: pulseaudio
Server Version: 1.1
Default Sample Specification: s16le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.hw_0_0
Default Source: alsa_input.hw_0_0
Cookie: 465d:d6f7


Thanks,

Jeroen
_______________________________________________
pulseaudio-discuss mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to