Re: audioctl
- From: ah <ah@xxxxxx>
- Date: Sun, 27 May 2007 01:02:28 +1000
jch wrote:
Marco S Hyman wrote:jch <jch@xxxxxxxxxxx> writes:_____
$ (audioctl -f /dev/audioctl play.rate=44100 ; cat
/mnt/data/xcdroast_tmp/track-01.wav) > /dev/audio
audioctl: set failed: Invalid argument
Yet, xmms plays the *.wav file just fine.
Are you sure your sound device supports 44100? Some are
limited to 48000 in which case xmms will do the down
conversion (at least I think xmms will down convert).
// marc
Here is what dmesg reveals:
audio0 at auich0
auich0 at pci0 dev 2 function 7 "SiS 7012 AC97" rev 0xa0: irq 5, SiS7012 AC97
ac97: codec id 0x434d4941 (C-Media Electronics CMI9738)
auich0: measured ac97 link rate at 48001 Hz, will use 48000 Hz
This tells me that the SiS7012 chip is set to work at 48000 Hz. I don't know if the rate can be varied on that chip. Let us assume not, then xmms must be resampling down to 44100 Hz. I shall play with a wave file and convert a 44100 to 48000 to see if it sounds ok after the conversion.
it should be able to play 44100Hz. if the driver does the RIGHT thing and sets the VRA (variable rate audio) bit in the AC97 control registers. maybe its a badly written driver (having written a driver for various AC97 audio implementations for DOS (intel ICH chipset, but the concept is the same) a few years back.
have you tried Mplayer instead? does it make a difference?
.
- References:
- audioctl
- From: jch
- Re: audioctl
- From: Marco S Hyman
- Re: audioctl
- From: jch
- audioctl
- Prev by Date: Re: Ncurses
- Next by Date: OpenBSD on Indy
- Previous by thread: Re: audioctl
- Next by thread: ami0
- Index(es):
Relevant Pages
|
|