Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/PlaybackManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class Music.PlaybackManager : Object {
}

private dynamic Gst.Element playbin;
private dynamic Gst.Element rgvolume;
private uint progress_timer = 0;
private Settings settings;

Expand All @@ -46,6 +47,8 @@ public class Music.PlaybackManager : Object {
queue_liststore = new ListStore (typeof (AudioObject));

playbin = Gst.ElementFactory.make ("playbin", "playbin");
rgvolume = Gst.ElementFactory.make ("rgvolume", "replaygain");
playbin.set_property ("audio-filter", rgvolume);

var bus = playbin.get_bus ();
bus.add_watch (0, bus_callback);
Expand Down
Loading