[maemo-developers] How could I use gstream to play PCM buffer?

From: Stefan Kost ensonic at hora-obscura.de
Date: Mon Aug 18 23:44:12 EEST 2008
dumganhar schrieb:
> Hi,all!
> How could  I use gstream library to play sounds in the PCM buffer?I was 
> succeed in using "Wav Launch Demo" to play the pcm wav files on N810.But 
> how could I use "gst_parse_launch" function to play sounds in the PCM 
> buffer, not the way of opening wav files? Please help me!Thanks!
>  
> 2008-08-18
> ------------------------------------------------------------------------
> dumganhar
> 

gst-launch filesrc location=test.raw !
audio/x-raw-int,rate=44100,channels=1,width=16,... ! dsppcmsink

that element in the middle is a caps-filter where you need to describe the
format for raw audio. If it does not play, add an audioconvert element between
the capsfilter and dsppcmsink.

Stefan

> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers


More information about the maemo-developers mailing list