File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -856,9 +856,8 @@ do_sound_action (CsdMediaKeysManager *manager,
856856{
857857 GvcMixerStream * stream ;
858858 gboolean old_muted , new_muted ;
859- guint old_vol_pa , new_vol_pa , max_vol_pa ;
859+ guint old_vol_pa , new_vol_pa , max_vol_pa ;
860860 gint vol_step_pa ;
861- gdouble max_vol_setting_multiplier ;
862861 gint osd_vol , osd_max_vol ;
863862 gboolean sound_changed ;
864863
@@ -879,10 +878,14 @@ do_sound_action (CsdMediaKeysManager *manager,
879878 if (stream == NULL )
880879 return ;
881880
882- osd_max_vol = g_settings_get_int (manager -> priv -> sound_settings , "maximum-volume" );
883- max_vol_setting_multiplier = (gdouble ) osd_max_vol / 100 ;
884-
885- max_vol_pa = MIN ((guint ) PA_VOLUME_NORM * max_vol_setting_multiplier , PA_VOLUME_MAX );
881+ if (g_settings_get_boolean (manager -> priv -> sound_settings , "allow-amplified-volume" )) {
882+ osd_max_vol = 150 ;
883+ max_vol_pa = MIN ((guint ) PA_VOLUME_NORM * 1.5 , PA_VOLUME_MAX );
884+ }
885+ else {
886+ osd_max_vol = 100 ;
887+ max_vol_pa = MIN ((guint ) PA_VOLUME_NORM , PA_VOLUME_MAX );
888+ }
886889 vol_step_pa = (max_vol_pa * ((double ) VOLUME_STEP ) / 100 );
887890
888891 // Make the max volume divisible by our 5% step.
You can’t perform that action at this time.
0 commit comments