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 98f4a40 + f0325df commit 3cd1dc0Copy full SHA for 3cd1dc0
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
@@ -47,6 +48,8 @@ public class Music.PlaybackManager : Object {
47
48
queue_liststore = new ListStore (typeof (AudioObject));
49
50
playbin = Gst.ElementFactory.make ("playbin", "playbin");
51
+ rgvolume = Gst.ElementFactory.make ("rgvolume", "replaygain");
52
+ playbin.set_property ("audio-filter", rgvolume);
53
54
var bus = playbin.get_bus ();
55
bus.add_watch (0, bus_callback);
0 commit comments