Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to use speexrate or samplerate
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
jiaxi
n00b
n00b


Joined: 25 Sep 2012
Posts: 30

PostPosted: Mon Oct 08, 2012 9:06 am    Post subject: how to use speexrate or samplerate Reply with quote

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
View user's profile Send private message
aCOSwt
Moderator
Moderator


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Mon Oct 08, 2012 10:10 am    Post subject: Reply with quote

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.
_________________
Back to top
View user's profile Send private message
jiaxi
n00b
n00b


Joined: 25 Sep 2012
Posts: 30

PostPosted: Wed Oct 17, 2012 2:03 am    Post subject: Reply with quote

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
View user's profile Send private message
micmac
l33t
l33t


Joined: 28 Nov 2003
Posts: 989

PostPosted: Wed Oct 17, 2012 6:15 am    Post subject: Reply with quote

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
View user's profile Send private message
jiaxi
n00b
n00b


Joined: 25 Sep 2012
Posts: 30

PostPosted: Mon Oct 29, 2012 8:36 am    Post subject: Reply with quote

What should we do ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum