Re: [Rhythmbox-devel] Plug-in to insert a 2-second pause between each track in a playlist



----- "Imran Chaudhry" <ichaudhry gmail com> wrote:

> Hi All,
> 
> As topic, I want to create a plugin that pauses 2 seconds between
> each
> song in the playlist. So imagine a simple 2 track playlist. When the
> plugin is active, the playlist starts playing track 1 immediately,
> then after it ends there is a 2 second pause then track 2 plays. When
> track 2 ends there is no pause.
>
> I am not asking for anyone to write it for me but some pointers or
> pseudo-code would be welcome. I'm also happy to look at code of other
> plugins that do a similar thing. I'd like to code it up myself but
> the
> lack of documentation is holding me back.

Rhythmbox emits signals when certain events occur, such as starting a track, etc. You can have a function that gets called when the signal for finishing a song is emitted (if there is one) which does what you want. I don't know the specifics, but check the GTK and pyGTK documentation for more details.


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