Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | gtk_vumeter_new () |
void | gtk_vumeter_set_min_max () |
void | gtk_vumeter_set_levels () |
void | gtk_vumeter_set_scale () |
void gtk_vumeter_set_min_max (GtkVUMeter *vumeter
,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 *vumeter
,gint rms
,gint peak
);
Sets new level values for the level display. They are clamped to the min max range.
void gtk_vumeter_set_scale (GtkVUMeter *vumeter
,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.