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 1FELNG-0007eo-4o
	for garchives@archives.gentoo.org; Wed, 01 Mar 2006 07:03:50 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k2172dwZ029682;
	Wed, 1 Mar 2006 07:02:39 GMT
Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196])
	by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k216wdtQ002031
	for <gentoo-user@lists.gentoo.org>; Wed, 1 Mar 2006 06:58:40 GMT
Received: by wproxy.gmail.com with SMTP id 69so67901wra
        for <gentoo-user@lists.gentoo.org>; Tue, 28 Feb 2006 22:58:51 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=XFLGGjZ2qey9l+Dmdnd5pMizxvuNxxeBuYyFKYaaHKrv8hASN0eh4Vhs+xYl4o7qIBrhT7yidYp7KUKIC0zHRGv1EyZVTsgiXvoXPVBqrHl3t7gaAumDcEEvPy6hDNJ0DIoGN56B+H0BpQk7sczOwuKexS1XoJbppR6BKUXVfQw=
Received: by 10.65.194.1 with SMTP id w1mr1506548qbp;
        Tue, 28 Feb 2006 22:58:51 -0800 (PST)
Received: by 10.65.160.7 with HTTP; Tue, 28 Feb 2006 22:58:51 -0800 (PST)
Message-ID: <89646b4a0602282258n39d3f97at894f971873ba6d06@mail.gmail.com>
Date: Wed, 1 Mar 2006 00:58:51 -0600
From: "Mike Myers" <fluffymikey@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] mplayer sound issues
In-Reply-To: <4404DDB7.5050603@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>
	 <7573e9640602281512s381e1c6oa6085541b1ca5db6@mail.gmail.com>
	 <4404DDB7.5050603@gmail.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k216wdtQ002031
X-Archives-Salt: f72eaa70-e61b-4051-8325-7a66eb6256c0
X-Archives-Hash: f54bae7496287b8896cfa2d9358180e6

Just to keep you posted, if you're still interested;

I migrated to alsa-drivers from using the kernel drivers.  That alone
didn't seem to fix anything.  So, I updated to the 1.0_pre7-r1 version
of mplayer and that seemed to take care of the alsa issue with the wav
files.

I'm still having trouble playing dvds though.  But that's really a
separate issue.

On 2/28/06, Mike Myers <fluffymikey@gmail.com> wrote:
> Richard Fish wrote:
>
> >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.
> >
> >
> The weird thing is that this was totally working great before modular
> Xorg.  I'm really thinking it's just a matter of reinstalling
> something.  I just don't know what.  Also, when I play the .wav file, it
> plays for like a split second, and then mplayer just hangs.  But I do
> hear it for that first short second.
>
> >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
> >
> >
> >
> Here's the output from doing that:
>
> /Desktop $ mplayer -vo alsa -srate 44100 file.wav
> MPlayer dev-CVS-060217-04:46-3.4.4 (C) 2000-2006 MPlayer Team
> CPU: Intel Pentium M Dothan (Family: 6, Stepping: 8)
> MMX supported but disabled
> MMX2 supported but disabled
> CPUflags:  MMX: 0 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
> Compiled for x86 CPU with extensions: SSE SSE2
>
>
>
> 91 audio & 206 video codecs
> Playing 2006-02-27 13-42-42.wav.
> Audio file file format detected.
> ==========================================================================
> Opening audio decoder: [pcm] Uncompressed PCM audio decoder
> AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000->16000)
> Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
> ==========================================================================
> [AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or
> resource busy
> alsa-init: 1 soundcard found, using: default
> alsa: 44100 Hz/1 channels/2 bpf/30104 bytes buffer/Signed 16 bit Little
> Endian
> AO: [alsa] 44100Hz 1ch s16le (2 bytes per sample)
> Video: no video
> Starting playback...
> A:   0.0 (00.0) of 2991.0 (49:51.0) ??,?%
>
> It does the same, plays for a short second and then it still locks up.
> I have an mp3 that runs at that rate and it works fine.
>
> Thanks a lot for your help and patience so far, btw.  I really
> appreciate it.
>
> Mike
>


--
Mike Myers
mike@yaay.us
http://www.yaay.us

-- 
gentoo-user@gentoo.org mailing list