On Mon, 16 Feb 2004 16:17:59 +0100
Wolfgang Lonien <[EMAIL PROTECTED]> wrote:
>
> I tried and upgraded to 2.6.2 (both from the Debian repository and
> self-compiled), and since that I noticed that everything is a lot faster
> - including sound ;-)
> 
> The problem is: I don't actually know where to start searching, since
> 2.6 also brings ALSA into the game, and until now I used OSS.
> 
> It's not really Mickey Mouse, but a *lot* of sounds, including mp3s and
> all that stuff, are now running quite - hmmmm - "excitedly". With OSS
> emulation, this is also true for the system sounds (in KDE for
> instance); when I use pure ALSA instead, it's really "mickey".
> 
> Can anyone point me into the right direction?

I'm not sure I understand what you mean by "excitedly" and "mickey".
Are you saying that now that you've switched to ALSA, sound playback
is happening more quickly, and as a result everything seems higher-
pitched?

I ran into something similar once; and it turned out the issue was that
the soundcard is expecting a sample rate of 48kHz while my playback
software was sending standard 44.1kHz PCM data down the pike.  To see
if this is so, start playing MP3's, and while they're playing take a
look in the directory

/proc/asound/card0/pcm0p/sub0

(assuming you have only one soundcard, and that it's a typical
consumer type soundcard; otherwise, the relevant file may be
elsewhere).  In that directory, there's a file called "hw_params".
Do "cat hw_params" and you should see something like this:

stax:/proc/asound/card0/pcm0p/sub0-703> cat hw_params
access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 1953
buffer_size: 13671
tick_time: 10000
stax:/proc/asound/card0/pcm0p/sub0-704>

Note that "rate" there.  It ought to be 44100 like it is above;
if it's 48000, then that's likely what's up.

As an aside, while people here may be able to help you with ALSA
stuff, probably the best place to check is with the alsa-user mailing
list, found at

http://lists.sourceforge.net/lists/listinfo/alsa-user

Hope this is useful.

-c

-- 
Chris Metzler                   [EMAIL PROTECTED]
                (remove "snip-me." to email)

"As a child I understood how to give; I have forgotten this grace since I
have become civilized." - Chief Luther Standing Bear

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to