Hello everyone! I am stuck with one issue, I am developing an audio player
and trying to play an audio via gstreamer, but there is no sound:

I checked gstreamer via console:

gst-launch-0.10 filesrc location=/home/nemo/Music/Myfile.mp3 ! decodebin !
autoaudiosink

And it is working fine!

Then I tested converting audio file to audio file:

int
main (int   argc,
      char *argv[]){
      GstElement *pipeline;
      GstBus *bus;
      GstMessage *msg;

      gst_init (&argc, &argv);

      pipeline = gst_parse_launch ("filesrc
location=/home/nemo/Music/Ringtones/Myfile.mp3 ! decodebin !
audioconvert ! vorbisenc ! oggmux ! filesink location=test.ogg",
NULL);

      gst_element_set_state (pipeline, GST_STATE_PLAYING);

      bus = gst_element_get_bus (pipeline);
      msg = gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE,
(GstMessageType)(GST_MESSAGE_ERROR | GST_MESSAGE_EOS));

      if (msg != NULL)
        gst_message_unref (msg);
      gst_object_unref (bus);
      gst_element_set_state (pipeline, GST_STATE_NULL);
      gst_object_unref (pipeline);

      return 0;}

And it is also working fine!

But, when i am trying to play it, there is no sound:

pipeline = gst_parse_launch ("filesrc
location=/home/nemo/Music/Ringtones/Myfile.mp3 ! decodebin !
audioconvert ! autoaudiosink", NULL);


I am using standart sailfish os gstreamer 0.10

http://stackoverflow.com/questions/28039969/gstreamer-under-sailfish-os-no-output-sound
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to