From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.54)
	id 1FEEBB-0005ve-7J
	for garchives@archives.gentoo.org; Tue, 28 Feb 2006 23:22:53 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1SNKvIv006361;
	Tue, 28 Feb 2006 23:20:57 GMT
Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.204])
	by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k1SNC7lp001187
	for <gentoo-user@lists.gentoo.org>; Tue, 28 Feb 2006 23:12:07 GMT
Received: by wproxy.gmail.com with SMTP id 69so1218973wra
        for <gentoo-user@lists.gentoo.org>; Tue, 28 Feb 2006 15:12:43 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=pDjLnmWRDJ4ZHwfvLwWmgwjXcNMByX6Em96rdRyS5Rxmrv674tCrYZRXZ0+mqtjAkZ7T/2tQ2Xk9lE7CvmXqhFYeBjeNBrYT/Codsd3nsFUXkgINywGZBut692ixyKe+ApRrn39kfaWtz8uOAYdPNkz7xwib0CnqsAQ1amhYWJw=
Received: by 10.54.140.20 with SMTP id n20mr387071wrd;
        Tue, 28 Feb 2006 15:12:42 -0800 (PST)
Received: by 10.54.69.19 with HTTP; Tue, 28 Feb 2006 15:12:42 -0800 (PST)
Message-ID: <7573e9640602281512s381e1c6oa6085541b1ca5db6@mail.gmail.com>
Date: Tue, 28 Feb 2006 16:12:42 -0700
From: "Richard Fish" <bigfish@asmallpond.org>
Sender: richard.j.fish@gmail.com
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] mplayer sound issues
In-Reply-To: <4404D386.6010608@gmail.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <4404C0B7.60701@yaay.us>
	 <7573e9640602281411i3517986er6a8dca87eacfe684@mail.gmail.com>
	 <4404D386.6010608@gmail.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k1SNC7lp001187
X-Archives-Salt: bb0f757a-dc9d-46df-8b08-3d2bcc925205
X-Archives-Hash: ffcef62380612fefa7baa2cdf50854da

On 2/28/06, Mike Myers <fluffymikey@gmail.com> wrote:
> I seem to get that error regardless of what I'm playing.  I can play
> some files, like mp3s with the ao=alsa and that message will still
> appear, but it plays anyway.

Ok, theorizing time.  (ie., I have absolute no idea whether this is
right or not)

It sounds like this may be related to the sampling frequency of the
generated PCM.  If some application (like arts) is using /dev/dsp and
programming a specific rate (like 44100Hz), then when another
application (like mplayer) wants to generate PCM, it must program a
different rate (the wav file in your original message uses a 8000Hz
rate).  But the card cannot be changed to the 8kHz rate because the
original application is still "using" the OSS device.

If you play through arts, it handles the rate conversions for you, so
everything works.

You can test this by trying "mplayer -srate 44100 -ao arts file.wav". 
You can try different rates, or carefully examine the output of
mplayer with an mp3 to see what rate it is using there.

One last question: do you have a ~/.asoundrc file, and if so, what is in it?

-Richard

-- 
gentoo-user@gentoo.org mailing list