[Rhythmbox-devel] Rhythmbox replaygain plugin



Hi Calvin.
I use your replaygain plugin all the time, and although it is, as you
say just about the simplest function-improving plugin ever it does
what it needs to do. However, ther is one little glitch that maybe
yourself or someone familiar with how Rhythmbox constructs Gstreamer
pipelines could shed some light on. If I pause/unpause playback, the
gain reverts to the fallback gain until the transition to the next
song. Here's some sample output from running Rhythmbox with
--gst-debug=rgvolume:5. I've added comments to show where the
pause/unpause is. Any ideas?

/usr/bin/rhythmbox --gst-debug=rgvolume:5

[Song starts (correct volume adjustment)]

(rhythmbox:29161): GLib-GObject-WARNING **: invalid cast from
`GstAudioSinkRingBuffer' to `GstElement'
0:01:00.297359379 29161  0x9f161f0 LOG                 rgvolume
gstrgvolume.c:473:gst_rg_volume_sink_event:<rgvolume0> received tag
event
0:01:00.297797863 29161  0x9f161f0 INFO                rgvolume
gstrgvolume.c:643:gst_rg_volume_update_gain:<rgvolume0> result gain is
-6.70 dB (0.462381), matching target

[Song paused]

[Song unpaused (Gain reverts to 0.00, song is much louder)]

(rhythmbox:29161): GLib-GObject-WARNING **: invalid cast from
`GstAudioSinkRingBuffer' to `GstElement'
0:01:12.405617369 29161  0x93765e8 DEBUG               rgvolume
gstrgvolume.c:672:gst_rg_volume_determine_gain:<rgvolume0> using
fallback gain
0:01:12.405777374 29161  0x93765e8 INFO                rgvolume
gstrgvolume.c:643:gst_rg_volume_update_gain:<rgvolume0> result gain is
+0.00 dB (1.000000), matching target
0:01:12.742369070 29161  0xa0c6148 LOG                 rgvolume
gstrgvolume.c:473:gst_rg_volume_sink_event:<rgvolume0> received tag
event

[Next song starts (Gain set correctly again)]

(rhythmbox:29161): GLib-GObject-WARNING **: invalid cast from
`GstAudioSinkRingBuffer' to `GstElement'
0:01:21.612906566 29161  0xa0c7aa8 LOG                 rgvolume
gstrgvolume.c:473:gst_rg_volume_sink_event:<rgvolume0> received tag
event
0:01:21.613389588 29161  0xa0c7aa8 LOG                 rgvolume
gstrgvolume.c:473:gst_rg_volume_sink_event:<rgvolume0> received tag
event
0:01:21.613721095 29161  0xa0c7aa8 DEBUG               rgvolume
gstrgvolume.c:576:gst_rg_volume_tag_event:<rgvolume0> clamping album
peak 1.165169 to 1.0
0:01:21.614040209 29161  0xa0c7aa8 INFO                rgvolume
gstrgvolume.c:643:gst_rg_volume_update_gain:<rgvolume0> result gain is
-2.66 dB (0.736207), matching target


-- 
Regards,
Derek


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