Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Dec 2003 23:34:40 +0100
From:      "Thomas E. Zander" <riggs@rrr.de>
To:        Michael Nottebrock <michaelnottebrock@gmx.net>
Cc:        multimedia@freebsd.org
Subject:   Re: Problem with snd_ich and vchans
Message-ID:  <20031210223440.GB87860@o503.hadiko.de>
In-Reply-To: <200312102221.03613.michaelnottebrock@gmx.net>
References:  <200312102221.03613.michaelnottebrock@gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi,

On Wed, 10. Dec 2003, at 22:20 +0100, Michael Nottebrock wrote
according to [Problem with snd_ich and vchans]:

> Now when I enable vchans, sound plays back to slowly (pitched down), fiddling 
> with above sysctl doesn't have any effect. I found the following in vchan.c:
>
> [...]
>
> When I change the 44100 to 48000 there, sound plays back normally with vchans 
> enabled.

I think vchans and AC97 is an ugly trap. The main problem is the crappy
definition of the AC97 standard. It's intended to run on 48kHz only
which forces software resampling for many sources. Because of this some
vendors produce codecs which run internally on 44.1kHz and try to
resample any incoming source, and some don't.
Thus, it would be necessary to have a table for every AC97 codec to
determine which is its default base frequency in order to set it
correctly.
For example, the AC97 codec on my mobo does this default resampling to
44.1kHz, so if you have vchans enabled and you want to play a 48kHz
source like DVD it sounds like framedroppings. Luckily, mplayer can
resample :-)

Yes, it's time to create a *good* successor of the AC97 standard, but
until it arrives, we have to live with some unfortunate cheats.

Riggs

-- 
- "[...] I talked to the computer at great length and
-- explained my view of the Universe to it" said Marvin.
--- And what happened?" pressed Ford.
---- "It committed suicide." said Marvin.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iD8DBQE/15+AjdSJKchZls0RAgBcAJ4jnFxZzs/tZbTtFLXzICdXdbA10ACfWXqn
j4taAtBQIYvZKGKzfqq4Ros=
=kr9e
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031210223440.GB87860>