Playing wav or mp3 files from script on FR?

Frederik Sdun frederik.sdun at googlemail.com
Tue Sep 29 05:15:34 CEST 2009


* RANJAN <infibit at gmail.com> [28.09.2009 19:41]:
>    On Mon, Sep 28, 2009 at 10:37 PM, RANJAN <infibit at gmail.com> wrote:
> 
>      On Mon, Sep 28, 2009 at 10:35 PM, RANJAN <infibit at gmail.com> wrote:
> 
>          .wav will play pretty lagfree, everything else is using gstreamer,
>          so
>          depending on the file type, it might take a couple of hundred
>          milliseconds to prefill the pipeline.
> 
>        So you are referring to this one here:
>        http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.MusicPlayer.html;hb=HEAD#Play
>         
>        Sriranjan
> 
>      I think you were referring to this:
>      http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Device.Audio.html;hb=HEAD#PlaySound
> 
>      So both are one and the same in terms of performance and loading speed
>      in case of sound files?
> 
>      Sriranjan
> 
>    When I type this
> 
>    $mdbus -s org.freesmartphone.Device.Audio /org/freesmartphone/Device/Audio
>    org.freesmartphone.Device.Audio.PlaySound '1.wav'
> 
>    I doubt my syntax at the command line is right!
> 
>    I get "service not found error"
> 
>    Sriranjan
I didn't push the music player yet. This is a more like a media player,
  which is integrated into fso. org.freesmartphone.Device.Audio is for
  system sounds. 
  1. you need an absolute path to the file
  2. the PlaySound method has an additional loop (=1) and length (=0)
    parameter

Regards,
        Frederik

> _______________________________________________
> devel mailing list
> devel at lists.openmoko.org
> https://lists.openmoko.org/mailman/listinfo/devel


-- 
IRC: playya @ Freenode, Gimpnet
xmpp: playya at draugr.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.openmoko.org/pipermail/devel/attachments/20090929/b5997f8d/attachment.pgp 


More information about the devel mailing list