Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(visualizer): increase levels update freq #1139

Merged
merged 1 commit into from
Sep 28, 2024
Merged
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
4 changes: 2 additions & 2 deletions src/Widgets/AudioPlayer/Stream.vala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Smoothing function adapted from https://gitlab.gnome.org/GNOME/gnome-control-center/-/blob/ea8bafc5d1ebb945a0806b03dea0c3abf29c58d9/panels/sound/cc-level-bar.c

public class Tuba.Widgets.Audio.Stream : GLib.Object {
const double SMOOTHING = 0.3;
const double SMOOTHING = 0.2;
Gst.Bin pipeline;
Gst.Bus bus;
Gst.Element uridecodebin;
Expand Down Expand Up @@ -117,7 +117,7 @@ public class Tuba.Widgets.Audio.Stream : GLib.Object {

uint timeout_id = -1;
construct {
string pipestr = "uridecodebin name=uridecodebin ! audioconvert ! audio/x-raw,channels=2 ! volume name=volume ! level name=level interval=75000000 ! autoaudiosink name=sink";
string pipestr = "uridecodebin name=uridecodebin ! audioconvert ! audio/x-raw,channels=2 ! volume name=volume ! level name=level interval=50000000 ! autoaudiosink name=sink";
try {
pipeline = (Gst.Bin) Gst.parse_launch (pipestr);
uridecodebin = pipeline.get_by_name ("uridecodebin");
Expand Down
Loading