[pulseaudio-discuss] issue playing 44.1 Khz stereo using Pulseaudio

Harsha, Priya priya.harsha at intel.com
Sun Sep 20 01:27:40 PDT 2009


>> Hi,
>>
>> When I play a 44.1Khz stereo file through aplay, the
>> file is smooth and clear. When the same 44.1 Khz file
>> is played through paplay or any player using Pulseaudio
>> the playback is noisy. I see that the stereo file is
>> converted into mono and then played. Could there be an
>> issue because of the conversion?
>
>Hmm, could you please run "pacmd ls" once when you do this via aplay
>and once via paplay and provide me with both outputs?
>

After playing aplay -Dhw <44.1stereo.wav>, following is the output:
Welcome to PulseAudio! Use "help" for usage information.
>>> Memory blocks currently allocated: 1, size: 64.0 KiB.
Memory blocks allocated during the whole lifetime: 1, size: 64.0 KiB.
Memory blocks imported from other processes: 0, size: 0 B.
Memory blocks exported to other processes: 0, size: 0 B.
Total sample cache size: 0 B.
Default sample spec: s16le 2ch 44100Hz
Default channel map: front-left,front-right
Default sink name: MRST_NULL_SINK
Default source name: MRST_NULL_SINK.monitor
Memory blocks of type POOL: 1 allocated/1 accumulated.
Memory blocks of type POOL_EXTERNAL: 0 allocated/0 accumulated.
Memory blocks of type APPENDED: 0 allocated/0 accumulated.
Memory blocks of type USER: 0 allocated/0 accumulated.
Memory blocks of type FIXED: 0 allocated/0 accumulated.
Memory blocks of type IMPORTED: 0 allocated/0 accumulated.
10 module(s) loaded.
    index: 0
        name: <module-device-restore>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore the volume/mute state of devices"
                module.version = "0.9.15"
    index: 1
        name: <module-stream-restore>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore the volume/mute/device state of streams"
                module.version = "0.9.15"
    index: 2
        name: <module-card-restore>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore profile of cards"
                module.version = "0.9.15"
    index: 3
        name: <module-native-protocol-unix>
        argument: <>
        used: -1
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "Native protocol (UNIX sockets)"
                module.version = "0.9.15"
    index: 4
        name: <module-suspend-on-idle>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "When a sink/source is idle for too long, suspend it"
                module.version = "0.9.15"
    index: 5
        name: <module-x11-publish>
        argument: <>
        used: -1
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "X11 credential publisher"
                module.version = "0.9.15"
    index: 6
        name: <module-audiomanager>
        argument: <conf_path="/etc/pulse/policy.conf">
        used: -1
        load once: no
        properties:
                module.author = "www.intel.com"
                module.description = "Audiomanager for moblin"
                module.version = "0.1"
    index: 7
        name: <module-null-sink>
        argument: <sink_name="MRST_NULL_SINK" >
        used: 0
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "Clocked NULL sink"
                module.version = "0.9.15"
    index: 8
        name: <module-mrst-specific>
        argument: <tsched=0>
        used: -1
        load once: yes
        properties:
                module.author = "Long Bu"
                module.description = "Platform specific module for MRST"
                module.version = "0.1"
    index: 9
        name: <module-cli-protocol-unix>
        argument: <>
        used: -1
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "Command line interface protocol (UNIX sockets)"
                module.version = "0.9.15"
1 sink(s) available.
  * index: 0
        name: <MRST_NULL_SINK>
        driver: <module-null-sink.c>
        flags: DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
        state: SUSPENDED
        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: 344 KiB
        max rewind: 344 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 .. 10000.00 ms
        module: 7
        properties:
                device.description = "Null Output"
                device.class = "abstract"
                device.icon_name = "audio-card"
1 source(s) available.
  * index: 0
        name: <MRST_NULL_SINK.monitor>
        driver: <module-null-sink.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        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 rewind: 344 KiB
        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 .. 10000.00 ms
        monitor_of: 0
        module: 7
        properties:
                device.description = "Monitor of Null Output"
                device.class = "monitor"
                device.icon_name = "audio-input-microphone"
2 client(s) logged in.
    index: 0
        driver: <protocol-native.c>
        owner module: 3
        properties:
                application.name = "GNOME Volume Control"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "15"
                application.id = "org.gnome.VolumeControl"
                application.icon_name = "multimedia-volume-control"
                application.version = "2.26.1"
                application.process.id = "502"
                application.process.user = "moblin"
                application.process.host = "localhost"
                application.process.binary = "gnome-settings-daemon"
                application.language = "en_US.UTF-8"
                window.x11.display = ":0.0"
                application.process.machine_id = "7bd56646c12e20c29698aa777c5c98c0"
                application.process.session_id = "7bd56646c12e20c29698aa777c5c98c0-2086834182.937627-920203249"
    index: 1
        driver: <cli.c>
        owner module: 9
        properties:
                application.name = "UNIX socket client"
0 card(s) available.
0 sink input(s) available.
0 source outputs(s) available.
0 cache entrie(s) available.


After playing paplay <44.1stereo.wav>, following is the output:

Welcome to PulseAudio! Use "help" for usage information.
>>> Memory blocks currently allocated: 1, size: 64.0 KiB.
Memory blocks allocated during the whole lifetime: 10444, size: 22.2 MiB.
Memory blocks imported from other processes: 0, size: 0 B.
Memory blocks exported to other processes: 0, size: 0 B.
Total sample cache size: 0 B.
Default sample spec: s16le 2ch 44100Hz
Default channel map: front-left,front-right
Default sink name: alsa_card0device0.output
Default source name: alsa_card0device0.output.monitor
Memory blocks of type POOL: 1 allocated/4808 accumulated.
Memory blocks of type POOL_EXTERNAL: 0 allocated/0 accumulated.
Memory blocks of type APPENDED: 0 allocated/0 accumulated.
Memory blocks of type USER: 0 allocated/0 accumulated.
Memory blocks of type FIXED: 0 allocated/3247 accumulated.
Memory blocks of type IMPORTED: 0 allocated/2389 accumulated.
11 module(s) loaded.
    index: 0
        name: <module-device-restore>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore the volume/mute state of devices"
                module.version = "0.9.15"
    index: 1
        name: <module-stream-restore>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore the volume/mute/device state of streams"
                module.version = "0.9.15"
    index: 2
        name: <module-card-restore>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore profile of cards"
                module.version = "0.9.15"
    index: 3
        name: <module-native-protocol-unix>
        argument: <>
        used: -1
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "Native protocol (UNIX sockets)"
                module.version = "0.9.15"
    index: 4
        name: <module-suspend-on-idle>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "When a sink/source is idle for too long, suspend it"
                module.version = "0.9.15"
    index: 5
        name: <module-x11-publish>
        argument: <>
        used: -1
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "X11 credential publisher"
                module.version = "0.9.15"
    index: 6
        name: <module-audiomanager>
        argument: <conf_path="/etc/pulse/policy.conf">
        used: -1
        load once: no
        properties:
                module.author = "www.intel.com"
                module.description = "Audiomanager for moblin"
                module.version = "0.1"
    index: 7
        name: <module-alsa-card>
        argument: <device_id=0 name=pci_8086_800_sound_card_0 card_name=alsa_card0device0 tsched=0 sink_name=alsa_card0device0.output source_name=alsa_card0device0.input>
        used: 0
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "ALSA Card"
                module.version = "0.9.15"
    index: 8
        name: <module-null-sink>
        argument: <sink_name="MRST_NULL_SINK" >
        used: 0
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "Clocked NULL sink"
                module.version = "0.9.15"
    index: 9
        name: <module-mrst-specific>
        argument: <tsched=0>
        used: -1
        load once: yes
        properties:
                module.author = "Long Bu"
                module.description = "Platform specific module for MRST"
                module.version = "0.1"
    index: 10
        name: <module-cli-protocol-unix>
        argument: <>
        used: -1
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "Command line interface protocol (UNIX sockets)"
                module.version = "0.9.15"
2 sink(s) available.
  * index: 0
        name: <alsa_card0device0.output>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL LATENCY
        state: SUSPENDED
        volume: 0:  75%
                balance 0.00
        base volume: 100%
        volume steps: 127
        muted: no
        current latency: 0.00 ms
        max request: 8 KiB
        max rewind: 8 KiB
        monitor source: 0
        sample spec: s16le 1ch 44100Hz
        channel map: mono
                     Mono
        used by: 0
        linked by: 0
        fixed latency: 0.00 ms
        card: 0 <alsa_card0device0>
        module: 7
        properties:
                alsa.resolution_bits = "16"
                alsa.mixer_element = "PCM"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "Intel MAD"
                alsa.id = "1"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "Intel MAD"
                alsa.long_card_name = ""
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "0800"
                device.bus_path = "/devices/pci0000:00/0000:00:00.1/spi0.8/sound/card0"
                hal.udi = "/org/freedesktop/Hal/devices/pci_8086_800_sound_card_0"
                hal.product = " Sound Card"
                hal.card_id = ""
                device.string = "hw:0"
                device.buffering.buffer_size = "8816"
                device.buffering.fragment_size = "2204"
                device.access_mode = "mmap"
                device.profile.name = "analog-mono"
                device.profile.description = "Analog Mono"
                device.description = "Intel MAD"
                device.icon_name = "audio-card-pci"
    index: 1
        name: <MRST_NULL_SINK>
        driver: <module-null-sink.c>
        flags: DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
        state: SUSPENDED
        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: 344 KiB
        max rewind: 344 KiB
        monitor source: 1
        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 .. 10000.00 ms
        module: 8
        properties:
                device.description = "Null Output"
                device.class = "abstract"
                device.icon_name = "audio-card"
2 source(s) available.
  * index: 0
        name: <alsa_card0device0.output.monitor>
        driver: <module-alsa-card.c>
        flags: DECIBEL_VOLUME LATENCY
        state: SUSPENDED
        volume: 0: 100%
                0: 0.00 dB
                balance 0.00
        base volume: 100%
                     0.00 dB
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max rewind: 8 KiB
        sample spec: s16le 1ch 44100Hz
        channel map: mono
                     Mono
        used by: 0
        linked by: 0
        fixed latency: 0.00 ms
        monitor_of: 0
        card: 0 <alsa_card0device0>
        module: 7
        properties:
                device.description = "Monitor of Intel MAD"
                device.class = "monitor"
                alsa.card = "0"
                alsa.card_name = "Intel MAD"
                alsa.long_card_name = ""
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "0800"
                device.bus_path = "/devices/pci0000:00/0000:00:00.1/spi0.8/sound/card0"
                hal.udi = "/org/freedesktop/Hal/devices/pci_8086_800_sound_card_0"
                hal.product = " Sound Card"
                hal.card_id = ""
                device.string = "0"
                device.icon_name = "audio-card-pci"
    index: 1
        name: <MRST_NULL_SINK.monitor>
        driver: <module-null-sink.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        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 rewind: 344 KiB
        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 .. 10000.00 ms
        monitor_of: 1
        module: 8
        properties:
                device.description = "Monitor of Null Output"
                device.class = "monitor"
                device.icon_name = "audio-input-microphone"
2 client(s) logged in.
    index: 0
        driver: <protocol-native.c>
        owner module: 3
        properties:
                application.name = "GNOME Volume Control"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "15"
                application.id = "org.gnome.VolumeControl"
                application.icon_name = "multimedia-volume-control"
                application.version = "2.26.1"
                application.process.id = "502"
                application.process.user = "moblin"
                application.process.host = "localhost"
                application.process.binary = "gnome-settings-daemon"
                application.language = "en_US.UTF-8"
                window.x11.display = ":0.0"
                application.process.machine_id = "7bd56646c12e20c29698aa777c5c98c0"
                application.process.session_id = "7bd56646c12e20c29698aa777c5c98c0-2086834182.937627-920203249"
    index: 6
        driver: <cli.c>
        owner module: 10
        properties:
                application.name = "UNIX socket client"
1 card(s) available.
    index: 0
        name: <alsa_card0device0>
        driver: <module-alsa-card.c>
        owner module: 7
        properties:
                alsa.card = "0"
                alsa.card_name = "Intel MAD"
                alsa.long_card_name = ""
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "0800"
                device.bus_path = "/devices/pci0000:00/0000:00:00.1/spi0.8/sound/card0"
                hal.udi = "/org/freedesktop/Hal/devices/pci_8086_800_sound_card_0"
                hal.product = " Sound Card"
                hal.card_id = ""
                device.string = "0"
                device.description = "Intel MAD"
                device.icon_name = "audio-card-pci"
        profiles:
                output-analog-mono: Output Analog Mono (priority 100)
                off: Off (priority 0)
        active profile: <output-analog-mono>
        sinks:
                alsa_card0device0.output/#0: Intel MAD
        sources:
                alsa_card0device0.output.monitor/#0: Monitor of Intel MAD
0 sink input(s) available.
0 source outputs(s) available.
0 cache entrie(s) available.
>>> [moblin at localhost root]$

>Lennart
>



More information about the pulseaudio-discuss mailing list