[Pkg-alsa-devel] Bug#288652: libasound2: the rate option does not accept integers, even when given one

John Hendrikx John Hendrikx <hjohn@xs4all.nl>, 288652@bugs.debian.org
Tue, 04 Jan 2005 22:57:38 +0100


Package: libasound2
Version: 1.0.6-5
Severity: normal

I'm using this /etc/asound.conf file:

-- snip --

pcm.!default {
	type plug
	slave.pcm dmix
}

pcm.dmix {
	type dmix
	ipc_key 1024
	ipc_key_add_uid true
	slave {
		pcm "hw:0"
		rate 44100
	}
}

-- snip --

When I try to use the alsa dmix plugin (using mplayer) with this asound.conf, 
I get the following error:

ALSA lib conf.c:931:(parse_value) rate is not an integer
ALSA lib conf.c:1566:(snd_config_load1) _toplevel_:19:0:invalid argument
ALSA lib conf.c:2808:(snd_config_hook_load) /etc/asound.conf may be old
or corrupted: consider to remove or fix it

This is rather odd behaviour, as obviously rate IS an integer.  The alsa docs
I could find define the slave section like this:

-- snip --

# Slave PCM definition
pcm_slave.NAME {
  pcm STR           # PCM name
  # or
  pcm { }           # PCM definition
  format STR        # Format
  channels INT      # Channels
  rate INT          # Rate
  period_time INT   # Period time
  buffer_time INT   # Buffer time
}

-- snip --

With 'rate' being an INT.  There's no workaround, apart from simply
removing the 'rate' parameter, and it will use some default rate I donot
know, except that it sounds considerably worse than output without the
plugin.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-20040807
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages libasound2 depends on:
ii  libc6                       2.3.2.ds1-18 GNU C Library: Shared libraries an

-- no debconf information