We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f531bee + f0325df commit d7601ccCopy full SHA for d7601cc
1 file changed
src/PlaybackManager.vala
@@ -21,6 +21,7 @@ public class Music.PlaybackManager : Object {
21
}
22
23
private dynamic Gst.Element playbin;
24
+ private dynamic Gst.Element rgvolume;
25
private uint progress_timer = 0;
26
private Settings settings;
27
@@ -46,6 +47,8 @@ public class Music.PlaybackManager : Object {
46
47
queue_liststore = new ListStore (typeof (AudioObject));
48
49
playbin = Gst.ElementFactory.make ("playbin", "playbin");
50
+ rgvolume = Gst.ElementFactory.make ("rgvolume", "replaygain");
51
+ playbin.set_property ("audio-filter", rgvolume);
52
53
var bus = playbin.get_bus ();
54
bus.add_watch (0, bus_callback);
0 commit comments