audioresample faile with alsasink

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

audioresample faile with alsasink

brad2012
hi all,

I use the command to play audio to alsa device, but it will no sound
after a few bytes that kernel received.
gst-launch-0.10 filesrc
location=/var/tmp/usb/sda1/audio_src/audio_src_32k_le.wav ! wavparse !
audioconvert ! audioresample ! audio/x-raw-int, rate=48000 ! alsasink
device="hw:0,0"

Because I want to do sample conversion from 32K to 48K,
I can see the silence data in kernel pcm_lib.c function
snd_pcm_lib_write_transfer() after a few bytes received.

There is no sound from ALSA device.
Does someone have idea?


Thanks!
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: audioresample faile with alsasink

brad2012
hi all,

Could someone help me ?

the environment I used:
a sound card is I2S+ audio codec, that is comply ALSA.
I can play audio_src_32k_le.wav with sample rate conversion by aplay.
But it is fail when I try to play the same wav file by gstreamer.
After trace the flow in kernel .
I can see the audio data in kernel snd_pcm_lib_write_transfer(). The function do copy from user about audio data.
when I start to play by gst-lanuch command.
there are a lot of "0000" audio data in kernel after a few bytes.
I do not have idea about this  phenomenon.
the first few audio data is not "0000", but then a lot of "0000" audio data in kernel , such that no sound to I2S+codec alsa device.