Commit 7d3c9e87 authored by Olivier Teulière's avatar Olivier Teulière

* modules/gui/win32/mainframe.cpp: simplifications using the new

   aout_Volume* API
parent df8f6747
...@@ -356,40 +356,18 @@ void __fastcall TMainFrameDlg::EjectActionExecute( TObject *Sender ) ...@@ -356,40 +356,18 @@ void __fastcall TMainFrameDlg::EjectActionExecute( TObject *Sender )
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
void __fastcall TMainFrameDlg::VolumeUpActionExecute( TObject *Sender ) void __fastcall TMainFrameDlg::VolumeUpActionExecute( TObject *Sender )
{ {
aout_instance_t *p_aout; aout_VolumeUp( p_intf, 1, NULL );
p_aout = (aout_instance_t *)vlc_object_find( p_intf, VLC_OBJECT_AOUT,
FIND_ANYWHERE );
if ( p_aout != NULL )
{
aout_VolumeUp( p_aout, 1, NULL );
vlc_object_release( (vlc_object_t *)p_aout );
}
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void __fastcall TMainFrameDlg::VolumeDownActionExecute( TObject *Sender ) void __fastcall TMainFrameDlg::VolumeDownActionExecute( TObject *Sender )
{ {
aout_instance_t *p_aout; aout_VolumeDown( p_intf, 1, NULL );
p_aout = (aout_instance_t *)vlc_object_find( p_intf, VLC_OBJECT_AOUT,
FIND_ANYWHERE );
if ( p_aout != NULL )
{
aout_VolumeDown( p_aout, 1, NULL );
vlc_object_release( (vlc_object_t *)p_aout );
}
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void __fastcall TMainFrameDlg::MuteActionExecute( TObject *Sender ) void __fastcall TMainFrameDlg::MuteActionExecute( TObject *Sender )
{ {
aout_instance_t *p_aout; aout_VolumeMute( p_intf, NULL );
p_aout = (aout_instance_t *)vlc_object_find( p_intf, VLC_OBJECT_AOUT,
FIND_ANYWHERE );
if ( p_aout != NULL )
{
aout_VolumeMute( p_aout, NULL );
vlc_object_release( (vlc_object_t *)p_aout );
// MenuMute->Checked = ! MenuMute->Checked; // MenuMute->Checked = ! MenuMute->Checked;
}
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
......
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