Commit 4b45cfa2 authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/wxwindows/interface.cpp: display default volume level on start.

parent aca4db4e
......@@ -1389,6 +1389,13 @@ wxVolCtrl::wxVolCtrl( intf_thread_t *_p_intf, wxWindow* parent, wxWindowID id,
: wxGauge( parent, id, 200, point, size, wxGA_HORIZONTAL | wxGA_SMOOTH )
{
p_intf = _p_intf;
audio_volume_t i_volume;
aout_VolumeGet( p_intf, &i_volume );
i_volume = i_volume * 200 * 2 / AOUT_VOLUME_MAX;
SetValue( i_volume );
SetToolTip( wxString::Format((wxString)wxU(_("Volume")) + wxT(" %d"),
i_volume ) );
}
void wxVolCtrl::OnChange( wxMouseEvent& event )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment