Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | gtk_vumeter_new () |
void | gtk_vumeter_set_min_max () |
void | gtk_vumeter_set_levels () |
void | gtk_vumeter_set_scale () |
GtkWidget *
gtk_vumeter_new (GtkOrientation orientation
);
Creates a new VUMeter widget.
void gtk_vumeter_set_min_max (GtkVUMeter *self
,gint min
,gint max
);
Sets the minimum and maximum of the VU Meters scale. The positions are irrelevant as the widget will rearrange them. It will also increment max by one if min == max. And finally it will clamp the current level into the min,max range.
void gtk_vumeter_set_levels (GtkVUMeter *self
,gint rms
,gint peak
);
Sets new level values for the level display. The peak
level is the current max
level. The rmx
level is the decaying level part.
They are clamped to the min max range.
void gtk_vumeter_set_scale (GtkVUMeter *self
,gint scale
);
Sets the scale of the VU Meter. It is either log or linear and defaults to linear. No matter which scale you set the input should always be linear, GtkVUMeter does the log calculation. 0db is red. -6db is yellow. -18db is green. Whatever min turns into is dark green.