Hello,

wireshark Version 1.4.2

My system hardware and audio device:

HP 210 Mini
Fedora 14
2.6.35.10-74.fc14.x86_64
 cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0x56200000 irq 46

00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)

When I try and play back the rtp after making a sip call. I go to VOIP Calls | Player | Decode | Play. I get the following error message.

Got this info from PortAudio Library:
 Default hostApiName: ALSA
 Default deviceName: HDA Intel: STAC92xx Analog (hw:0,0) (0)

Can anyone suggest a solution to this problem?

Many thanks for any advice,

===== Device info ======

==============================
Default capture device number: 7
Default playback device number: 7
==============================
Device ID: 0
Device name: ALSA: HDA Intel: STAC92xx Analog (hw:0,0)
Input channels: 2
Output channels: 2
Low Input Latency: 0.011610
Low Output Latency: 0.011610
High Input Latency: 0.046440
High Output Latency: 0.046440
Supported Rates:
    44100
    48000
    88200
    96000
    192000
==============================
Device ID: 1
Device name: ALSA: front
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.011610
High Input Latency: -1.000000
High Output Latency: 0.046440
Supported Rates:
    44100
    48000
    88200
    96000
    192000
==============================
Device ID: 2
Device name: ALSA: surround40
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.011610
High Input Latency: -1.000000
High Output Latency: 0.046440
Supported Rates:
    44100
    48000
    88200
    96000
    192000
==============================
Device ID: 3
Device name: ALSA: surround51
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.011610
High Input Latency: -1.000000
High Output Latency: 0.046440
Supported Rates:
    44100
    48000
    88200
    96000
    192000
==============================
Device ID: 4
Device name: ALSA: surround71
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.011610
High Input Latency: -1.000000
High Output Latency: 0.046440
Supported Rates:
    44100
    48000
    88200
    96000
    192000
==============================
Device ID: 5
Device name: ALSA: pulse
Input channels: 32
Output channels: 32
Low Input Latency: 0.011610
Low Output Latency: 0.011610
High Input Latency: 0.046440
High Output Latency: 0.046440
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    192000
==============================
Device ID: 6
Device name: ALSA: dmix
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.042667
High Input Latency: -1.000000
High Output Latency: 0.042667
Supported Rates:
    48000
==============================
Device ID: 7
Device name: ALSA: default
Input channels: 32
Output channels: 32
Low Input Latency: 0.011610
Low Output Latency: 0.011610
High Input Latency: 0.046440
High Output Latency: 0.046440
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    192000
==============================
Selected capture device: 7 - ALSA: default
Selected playback device: 7 - ALSA: default
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    192000
Unable to open Portmixer

======= Edit === After install audacity:

Got this info from PortAudio Library:
 Default hostApiName: ALSA
 Default deviceName: HDA Intel: STAC92xx Analog (hw:0,0) (0)

Can not Open Stream in PortAudio Library.
 Error: Invalid sample rate

Audacity installed:

Name        : audacity
Arch        : x86_64
Version     : 1.3.12
Release     : 0.6.beta.fc14
Size        : 13 M
Repo        : installed
From repo   : updates
Summary     : Multitrack audio editor
URL         : http://audacity.sourceforge.net
License     : GPLv2
Description : ........

asked 22 Jan '11, 08:05

ant2009's gravatar image

ant2009
6114
accept rate: 0%

edited 24 Jan '11, 07:17


The Audacity audio device info gives the following picture:

  • Wireshark/PortAudio uses the default host api, which is ALSA
  • Wireshark/PortAudio uses the default device, which doesn't exists (weird bug)
  • Wireshark learns there's no device, starts enumeration.
  • Wireshark/PortAudio selects the first host API, ALSA
  • Wireshark/PortAudio selects the first device, HDA Intel: STAC92xx Analog (hw:0,0)
  • Wireshark/PortAudio opens a stream: Stereo, 16 bit, 8kHz
  • As you can see from the Audacity audio device info this device doesn't support rate 8000
  • Wireshark gives up

How to change the ALSA configuration to give you the right device as the first one I don't know.

The very best way is to put pressure on the PortAudio developers to fix the three years outstanding CRITICAL bug (*)

(*) Yeah it's a rant, but it must be solved at the source, not be worked around by all (audio) developers...

link

answered 24 Jan '11, 11:41

Jaap's gravatar image

Jaap ♦
6.0k568
accept rate: 11%

Thanks for your help. Just unfortunate that is no final solution.

(26 Jan '11, 06:51) ant2009

Ehm, no, it's not a final solution. What would be is (in order of preference):

  1. A fixed PortAudio
  2. An even more exhaustive search by Wireshark for a usable device
  3. Create a user configuration option
  4. Have you work on the ALSA/device driver configuration or code

All of which requires developer cycles.

(26 Jan '11, 14:15) Jaap ♦

There's something off with the configuration of your audio system.

First off, the PortAudio library has some issues finding your default device, on the default host API. That's a PortAudio lib problem by itself, but Wireshark tries to work around it looking for other host API/device configurations.

It tries to work through the list of host APIs, the first one with devices on them is selected, then the first device on that is selected. An output stream is opened on it, with stereo output, 16 bit samples, 8 kHz sample rate.

Now, your title says: "Invalid sample rate". That strikes me as odd, because the output configuration is trivial in itself.

You could investigate further installing Audacity, and checking how it works the output host API/device options.

link

answered 23 Jan '11, 06:00

Jaap's gravatar image

Jaap ♦
6.0k568
accept rate: 11%

Hello, thanks for your answer. However, installing audacity didn't work. I installed it and then rebooted. See my edited question of the results. Thanks.

(23 Jan '11, 08:30) ant2009

What does Audacity menu Help|Audio Device Info show ?

(23 Jan '11, 11:44) Jaap ♦

Hello Jaap, I have edited my answer with the device info. Thanks.

(24 Jan '11, 07:16) ant2009
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×481
×98

Asked: 22 Jan '11, 08:05

Seen: 2,632 times

Last updated: 26 Jan '11, 14:15

powered by OSQA