| View previous topic :: View next topic |
| Author |
Message |
jiaxi n00b

Joined: 25 Sep 2012 Posts: 28
|
Posted: Mon Oct 08, 2012 9:06 am Post subject: how to use speexrate or samplerate |
|
|
the alsa-lib default use linear resample .And now we want to usb speexrate.
1. compile alsa-plugins-1.0.23.tar.bz2 and alsa-lib
2 in /usr/lib/alsa-lib we can get libasound_module_rate_speexrate.so
3 modify /etc/asound.com
defaults.pcm.rate_converter "speexrate"
but when we use aplay 48k.wav.
we can get the log:ALSA lib pcm_rate.c:1469snd_pcm_rate_open) Cannot find rate converter
# ls /usr/lib/alsa-lib/
libasound_module_ctl_arcam_av.a
libasound_module_ctl_arcam_av.so
libasound_module_ctl_oss.a
libasound_module_ctl_oss.so
libasound_module_pcm_oss.a
libasound_module_pcm_oss.so
libasound_module_pcm_speex.a
libasound_module_pcm_speex.so
libasound_module_pcm_upmix.a
libasound_module_pcm_upmix.so
libasound_module_pcm_usb_stream.a
libasound_module_pcm_usb_stream.so
libasound_module_pcm_vdownmix.a
libasound_module_pcm_vdownmix.so
libasound_module_rate_samplerate.a
libasound_module_rate_samplerate.so
libasound_module_rate_samplerate_best.so
libasound_module_rate_samplerate_linear.so
libasound_module_rate_samplerate_medium.so
libasound_module_rate_samplerate_order.so
libasound_module_rate_speexrate.a
libasound_module_rate_speexrate.so
libasound_module_rate_speexrate_best.so
libasound_module_rate_speexrate_medium.so
smixer |
|
| Back to top |
|
 |
aCOSwt Advocate


Joined: 19 Oct 2007 Posts: 2042 Location: Between the keyboard and the chair
|
Posted: Mon Oct 08, 2012 10:10 am Post subject: |
|
|
1/ You wrote that you compiled alsa-plugins-1.0.23.tar.bz2
Do you mean you emerged alsa-plugins with the speex use flag set ?
2/ Which kernel version are you running ? Latest kernel versions implement 1.0.25 alsa drivers and it is always better to ensure drivers/plugins/lib versions match.
Moreover 1.0.23 plugins and libs are no longer available under portage's tree. _________________ In theory there are no differences between theory and practice. In practice, there are.
Don't try to understand my posts. Immanuel Kant never did, he thinks that only music and laughter do not have to mean anything. |
|
| Back to top |
|
 |
jiaxi n00b

Joined: 25 Sep 2012 Posts: 28
|
Posted: Wed Oct 17, 2012 2:03 am Post subject: |
|
|
| aCOSwt wrote: | 1/ You wrote that you compiled alsa-plugins-1.0.23.tar.bz2
Do you mean you emerged alsa-plugins with the speex use flag set ?
2/ Which kernel version are you running ? Latest kernel versions implement 1.0.25 alsa drivers and it is always better to ensure drivers/plugins/lib versions match.
Moreover 1.0.23 plugins and libs are no longer available under portage's tree. |
I compile alsa-plugin:alsa-plugins-1.0.23.tar.bz2
export CFLAGS=-I/usr/include
export CPPFLAGS=-I/usr/include
export CXXFLAGS=-I/usr/include
export LDFLAGS=-L/usr/lib
export samplerate_CFLAGS=/usr/include
export samplerate_LIBS=/usr/lib
export speexdsp_CFLAGS=/usr/include
export speexdsp_LIBS=/usr/lib
./configure --prefix=/usr --enable-static --enable-shared --with-configdir=/usr/share/alsa --with-speex=lib
make || return 1
make DESTDIR=$pkgdir install
alsa-lib:alsa-lib-1.0.21a
./configure --prefix=/usr --enable-static --enable-shared --with-configdir=/usr/share/alsa --with-plugindir=/usr/lib/alsa-lib --with-alsa-devdir=/dev
make || return 1
make DESTDIR=$pkgdir install |
|
| Back to top |
|
 |
micmac l33t

Joined: 28 Nov 2003 Posts: 985
|
Posted: Wed Oct 17, 2012 6:15 am Post subject: |
|
|
Hello!
I have the same issue. I have
| Code: | | defaults.pcm.rate_converter "samplerate" |
in my .asoundrc, but "samplerate" somehow gets lost along the way.
I have media-libs/alsa-lib-1.0.25-r1 on amd64. |
|
| Back to top |
|
 |
jiaxi n00b

Joined: 25 Sep 2012 Posts: 28
|
Posted: Mon Oct 29, 2012 8:36 am Post subject: |
|
|
| What should we do ? |
|
| Back to top |
|
 |
|