Re: [Banshee-List] How does Banshee import songs into GtkTreeView without playing them?



Thank you Bertrand and Oliver!! I understand it know!

On Mon, Jun 27, 2011 at 1:51 PM, Bertrand Lorentz <bertrand lorentz gmail com> wrote:
Hi,

Some additional info below, to complement Olivier's answer.

On Tue, Jun 21, 2011 at 12:28 AM, Phong Cao <phngcv gmail com> wrote:
> Hello everybody,
> I am currently practicing programming by writing a small music manager in
> Gtk# and Gstreamer#. I spent the last two weeks reading Banshee's source
> code trying to figure out how to make my music manager software imports the
> songs without playing them. Here is what I tried:
> 1. I just created a playbin with each song, set its state to State.Paused
> and then get the TagList from the GstMessage of the playbin.
> However, this method is pretty resource-consuming and slow, especially when
> I tried to import like 1000+ songs (it crashed).
> Therefore, I am just curious to know how the Banshee team imported all the
> songs without playing them? In other words, do you guys also set the song's
> state to State.Paused to import them, or do you use another way?

Banshee doesn't use GStreamer when importing, it reads the metadata
tags from the music file using the taglib-sharp library
(http://download.banshee.fm/taglib-sharp/). The data from those tags
is then inserted in our sqlite database.

GStreamer's metadata parsing is only used when playing a live stream
(like an internet radio), to extract the tags from the stream.


--
Bertrand Lorentz
_______________________________________________
banshee-list mailing list
banshee-list gnome org
http://mail.gnome.org/mailman/listinfo/banshee-list  (unsubscribe here)



--
Phong V. Cao
phngcv gmail com
caoph rider edu




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]