From 7a3e8ee82e15a49677309d8ab9eb859d3879c215 Mon Sep 17 00:00:00 2001 From: Alexey Kulakov Date: Sun, 26 Oct 2014 21:27:12 +0000 Subject: mRadio: fix for miranda-depended mute action git-svn-id: http://svn.miranda-ng.org/main/trunk@10874 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/mRadio/roptions.pas | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/plugins/mRadio/roptions.pas b/plugins/mRadio/roptions.pas index 347747521c..2932dbbcbd 100644 --- a/plugins/mRadio/roptions.pas +++ b/plugins/mRadio/roptions.pas @@ -28,7 +28,7 @@ implementation uses windows, - common,dbsettings,mirutils, + common,dbsettings,mircontacts,m_api, rglobal; const @@ -186,11 +186,19 @@ begin sTimeout :=DBReadWord(0,PluginName,optTimeout,5000); isEQ_OFF :=DBReadByte(0,PluginName,optEQ_OFF); - gVolume :=DBReadByte(0,PluginName,optVolume,50); + gVolume :=integer(shortint(DBReadByte(0,PluginName,optVolume,50))); ForcedMono:=DBReadByte(0,PluginName,optForcedMono); NumTries :=DBReadByte(0,PluginName,optNumTries,1); if NumTries<1 then NumTries:=1; + // volume changes + if AuMute<>0 then + begin + gVolume:=ABS(gVolume); + if DBReadByte(0,'Skin','UseSound')=0 then + CallService(MS_RADIO_MUTE,0,0); + end; + //-- Equalizer szTemp[0]:='E'; szTemp[1]:='Q'; -- cgit v1.2.3