Re: [Rhythmbox-devel] Updated replaygain plugin, fixes pause support
- From: Jonathan Matthew <jonathan d14n org>
- To: rhythmbox-devel gnome org
- Subject: Re: [Rhythmbox-devel] Updated replaygain plugin, fixes pause support
- Date: Fri, 29 Jan 2010 08:06:37 +1000
On Fri, Jan 29, 2010 at 7:58 AM, Calvin Walton <calvin walton gmail com> wrote:
> Hi all,
>
> I've put together an updated version of the replaygain plugin hack that
> I built a while ago. This version works around the issue where the
> plugin would forget the gain of the current track.
>
> The actual problem appears to be that when you hit 'Pause', Rhythmbox
> sets the state of the stream filter to READY instead of PAUSED, which
> causes the rgvolume element to lose its state. The correct fix to this
> is to actually insert the rgvolume element into a different location in
> the gstreamer pipeline (right after the file decoding, with one plugin
> instance per file). However, this location isn't accessible to plugins -
> it would require core code changes (Which I still plan to look into...
> eventually)
You could also lock the rgvolume element's state once it reaches PLAYING.
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html#gst-element-set-locked-state
> The workaround is to use plugin code to save the gain when rhythmbox
> pauses. I've attached an updated version of the plugin with minimal
> changes to make this work.
>
> Handily, core changes within Rhythmbox have corrected the issue where
> uloading and loading the plugin while Rhythmbox is playing have been
> corrected, so please use the latest release.
>
> Enjoy, at least until replaygain is properly fixed :)
This will happen pretty soon.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]