[linux-audio-user] How to resample from 44.1 to 48 kHz?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-user] How to resample from 44.1 to 48 kHz?
From: Timo Sivula (timo.sivula_AT_luukku.com)
Date: Sat Dec 11 2004 - 01:37:15 EET


Hi,

I have an onboard VT8235 soundcard that only supports 48 kHz sampling
rate. I would like to play 44.1 kHz stufff on it and have it look like a
44.1 kHz device to jack. Is there a way to do this using .asoundrc? My
.asoundrc starts like this:

-------------
pcm.via82xx {
        type plug
        slave {
                pcm "hw:0,0"
                rate 48000
        }
}
       
ctl.via82xx {
        type hw
        card 0
}
---------------
Jack refuses to use this in 44.1 kHz. Have I misunderstood the alsa
resampling?

el:~$ jackstart -d alsa -d via82xx -r 44100 -n3 -p 128
back from read, ret = 1 errno == Success
jackd 0.99.0
Copyright 2001-2003 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
 
loading driver ..
apparent rate = 44100
creating alsa driver ...
via82xx|via82xx|128|3|44100|0|0|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 128 frames, buffer = 3 periods
You appear to be using the ALSA software "plug" layer, probably
a result of using the "default" ALSA device. This is less
efficient than it could be. Consider using a hardware device
instead rather than using the plug layer. Usually the name of the
hardware device that corresponds to the first soun
ALSA: cannot set period size to 128 frames for capture
ALSA: cannot configure capture channel
cannot load driver module alsa
el:~$

------------

br, Timo


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sat Dec 11 2004 - 01:51:09 EET