Re: audioctl



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?

.



Relevant Pages

  • Re: Sound help needed.
    ... Like you said the conversion may have ... > the wav file, because I knew that only wav's can be embedded and that's ... just a single file that plays with sound and all. ... >> will only play on my PC, when I play the presentation on another PC, it comes ...
    (microsoft.public.powerpoint)
  • Re: Sound help needed.
    ... How big is your wav file? ... Like you said the conversion may have ... just a single file that plays with sound and all. ... > will only play on my PC, when I play the presentation on another PC, it comes ...
    (microsoft.public.powerpoint)
  • [SLE] Playing .wav files
    ... I have a .wav file that I got as an attachment to an email. ... I tried to play it using xmms, ... A related problem is that when I attempted to play it with RealPlayer 10, ...
    (SuSE)
  • weird sound problem requires odd config tweak
    ... Im running 4.8 on my Laptop, with the following sound hardware: ... The first time i went to play an mp3 [with xmms] it started playing ... Eventually i did figure out some ways to get audio playing. ...
    (freebsd-hackers)
  • Re: xmms skips all files
    ... A decent site to have a look at streaming radio stations is ... shoucast.com..Real player plays them. ... Typically if XMMS skips files you have a permissions or file system problem. ... >>I would clear the play list. ...
    (Debian-User)